You need to sign in to do that
Don't have an account?
Aidel Bruck
How to see the system.debug message when running a trigger test
Hi,
I have created a trigger and I now testing it from a test class.
Something is going wrong and I would like to figure out what.
I am using the salesforce developer console.
I have put system.debug messages in strategic places in the test class and in the trigger itself.
non of them of showing on the logs tab.
I am sure that there is something simple that I am missing.
Please advice,
Thank,
Aidel
I have created a trigger and I now testing it from a test class.
Something is going wrong and I would like to figure out what.
I am using the salesforce developer console.
I have put system.debug messages in strategic places in the test class and in the trigger itself.
non of them of showing on the logs tab.
I am sure that there is something simple that I am missing.
Please advice,
Thank,
Aidel
did you check user assigned on monitor user in debug log?
If you are using System.assert or any assert related statement in test class, remove it and check again.
Thanks,
Vinoth
I am beggining to think I am simply not looking in the right place
is this where I should be looking? see red circle below:
Go to Setup > Debug Logs
Then add the user who is running the trigger to the list of monitored users. For example if you are testing the trigger, add your name to the monitored users. See screenshot below.
Then you will be able to see the logs in the place you have highlighted with red circle.
Hope this helps.
I think you checked the right place. you may need to check the test case running status in your org at Build | Develop | Apex Test Execution.
And may need to clear cach of your browser and try. It should be like this after running test case.
Or you can try running test case in your org at Build | Develop | Apex Test Execution.
David