Pausing Execution in IDE appears to leave thread running

I’m doing some debugging with preemptive threads and I can see what when I pause my app in the IDE when debugging, the preemptive threads do NOT pause. They keep going. I know this because I am writing to the debug log and several minutes after pausing the app, I see new entries being written to the debug log from the threads.

This seems like a bug in the IDE - yes?

1 Like

The IDE debug log viewer can get overwhelmed and run very slowly if you are doing a lot of logging - are you sure the log entries are being newly created, vs. just being slow to show up?

Edit: I just did a quick test and am not seeing this. In a debug app with a Main Thread and one Preemptive thread, pausing the app in the IDE does pause both threads…

Maybe it’s just the log is behind. That’s possible. I’ve put in a ton of System.DebugLog statement and am running about 11 preemptive threads.

it sure makes the IDE sluggish…

System.DebugLog is sluggish. It demands events. The event loop can be very slow and working behind when you have very demanding threads running.
Sometimes it is better to write logs to a file stream and check the file later.

1 Like