Keep Secondary Threads Running While Debugging With Visual Studio Keep Secondary Threads Running While Debugging With Visual Studio multithreading multithreading

Keep Secondary Threads Running While Debugging With Visual Studio


Okay, it seems that whenever you hit a break-point in a process, all threads in that process halt, and there doesn't seem to be any way of overriding that behavior. The only way to do what I'm trying to do is to create a second Process, and have that Process be responsible for sending the virtual key-presses to Visual Studio, via an external API call.

Obviously you'll have to have some way of communicating between the main process and the key-pressing process. I looked around and I found that Anonymous Pipes are probably the best method for communicating between two processes running on the same machine.


I know it's an old reference and my answer arrive a lot too late but just to let you know... I think it still apply: You can't debug yourself