Running anonymous apex consumes/deletes user trace flags in Salesforce

Issue #312 resolved
June Bischoff created an issue

I'm trying to debug queued apex. All I get in the initial queuing log in Illuminated Cloud is the success that I queued things (as I would expect.)

I'm trying to run debugging on the queued items as they execute, but any user traces I set up get taken over by Illuminated Cloud and expired as soon as the anonymous apex completes.

I've tried setting up multiple user traces with different debug levels, but they are disappeared by IC.

Comments (6)

  1. Matt Addy Account Deactivated

    I'm facing the same issue and need to setup new trace flags anytime I use the anonymous apex feature.

  2. Scott Wells repo owner

    Sorry for the delayed response, June. Been head-down on Lightning. Sorry for the inconvenience, both of you. I'll make this less intrusive so that it's only managing its own trace flags and not messing with yours!

  3. Scott Wells repo owner

    This should be fixed in the next release. I'm only deleting trace flags now that I explicitly created in conjunction with my own log levels.

  4. Log in to comment