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
juppingerjuppinger 

Can't see system.debug - Messages

Hi everybody,

 

1. if I create a trigger directly in the sandbox and use a system.debug('test)';-Command, where can I find this message diectly in salesforce?

Do I have to active something in the setup to see the system log window?

 

2. if I create something in eclipse, where can I see the debug-messages in eclipse?

 

Thanks,

jup

Best Answer chosen by Admin (Salesforce Developers) 
JimRaeJimRae

For example 1, you can open the "System Log" which is at the top of each page near the Setup menu link. That will display all of your debug output when code is executed.

 

For 2, you could create a testmethod (This will be required before you can deploy anyway), and when you execute the testmethod, you can see the results in the test execution window.

All Answers

gv007gv007
See yours debug messages in setup->monitoring->debuglog
JimRaeJimRae

For example 1, you can open the "System Log" which is at the top of each page near the Setup menu link. That will display all of your debug output when code is executed.

 

For 2, you could create a testmethod (This will be required before you can deploy anyway), and when you execute the testmethod, you can see the results in the test execution window.

This was selected as the best answer