Break All Processes When One Process Breaks
Menu: Tools -> Options -> Debugging -> General
Versions: 2008,2010
Published: 10/22/2010
Code: vstipDebug0029
In vstipEnv0015 (https://blogs.msdn.com/b/zainnab/archive/2010/05/10/multiple-startup-projects-vstipenv0015.aspx) we looked at how to run multiple projects at the same time. Now we will explore what happens when you go into break mode on the applications. By default, when you break one application, all the other applications break too. Let's take a look at an example:
When I set a breakpoint in my first application that has a hit counter on it:
But don't have any breakpoints in my second application:
When I run the applications here is what I get:
Both applications stop when one of them stops. This behavior is set in Tools -> Options -> Debugging -> General by way of the "Break all processes when one process breaks" option:
If you turn this feature off and run our applications again, this is the (predictable) result:
Comments
- Anonymous
October 21, 2010
Like this one, However I don't have the opportunity to spin up new apps off my main app controller. Guess if you had a distributed configuration with worker processes this would be a great feature. I'd like to use it in task manager to issue a complete thread dump of the parent and all children of the host, to find the little critters those hackers put in my computer when I'm not paying attention. I know I should run a virtual environment on VS2008RC, but I just came to the end of my career yesterday when BizSpark Team told me I have been black balled. Don't even know why I bother to make this post, I just happen to like the author... cool dude... @ProtoBytes