Currently I have a background thread that does some periodic heavy data management. Because it only needs to run its process every few hundred milliseconds I call Thread.Sleep()
at the end of the process and it then goes back to the top of the loop and repeats.
This is all working perfectly and doesn't cause any grief or performance issues for the rest of the software. The only thing that does bug me though is that when I break the debugger instead of going to my main threads current location, it gets stolen by the Thread.Sleep()
and takes me there instead.
Is there any way that I can disable the debugger from stopping on that line, or is there an alternative to putting the Thread to sleep?
Thanks in advance!