Debug not working

Issue #346 resolved
David Smith created an issue

Debug was all working fine, but suddenly it started doing the following: * When I start debug, it starts up but stops on the first line of code in the file on the line '@isTest' even though there isn't a breakpoint there. * If I hit continue it runs all of the code ignoring any break points I have set up

I've tried cleaning/deleting/creating new projects to no avail, it doesn't work anymore.

Comments (4)

  1. Scott Wells repo owner

    David, another user had a similar experience the other day. Can you try a few things to see if they help?

    First, clear out any old debug logs to make room for new ones. You can do that in the IC Log Viewer or in the Salesforce Setup/Developer Console UIs. See if that helps generate a complete enough log for debugging.

    Second, make sure that the correct log levels are being used. You should be able to see that in the log that's being debugged. The debug levels for APEX_CODE and SYSTEM should be FINEST. If not, adjust the log levels. Again, see if that gets things working again.

    Third, try setting a breakpoint at an executable line of code inside of your test method. Then tell the debugger to resume after hitting the test annotation and see if it then stops on your breakpoint.

    If none of these resolve the issue for you, I may need to take a look at the log being debugged. You can email that to me directly if it contains sensitive information. Let me know!

  2. David Smith reporter

    Hi, does seem to be a log level issues but the logging levels on the debug seem correct to me, see below. As requested I've also attached the debug logs.

    Screen Shot 2016-07-08 at 10.22.04.png

  3. David Smith reporter

    Hi Scott

    I believe the issue is resolved. On SFDC I deleted all of the User Trace Flags in the Debug Logs page. When I ran the IC Debug again it created a new SFDC_DevConsole user trace for me and now the debugger worked correctly.

    Thanks for your help. David/

  4. Log in to comment