function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AnicheAniche 

Trigger help

I am new to writing triggers and i want to what is the way that i can debug my trigger something like alerts that popup on the screen or writing into a file so i can understand where my control is in the code. Thanks
Ron HessRon Hess
you can add
system.debug('my code is here');

to your apex code, then click on the "System Log" link at the top of the app, and this will show the output of the debug statements after they run.

you can also run statements in this log window, sort of like a shell...
AnicheAniche
Thanks Ron, this was great, I will now look for seeing these statements in Eclipse itself and will come back incase i dont get it. Thanks Anish