+ Start a Discussion

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...
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