Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've seen similar problems answered on the net, but could not find a solution.
I am programming with Visual Studio. Recently I have installed it on a new computer, and now it behaves differently. Before, whenever I had an unhandled exception, it would be thrown all the way up to Program.cs, where the IDE would catch it and show it to me in a window stating the message and the place in the code where it originated. That was very comfortable.
Now the Just-in-Time debugger window pops up and informs me that I have an unhandled exception. Then it asks me whether I would like to use Visual Studio to debug it. If I say no, the program breaks and I can't see the exception. If I say yes, the JiT complains that another program (obviously the Studio I use to program) is attached to the process and it cannot debug.
This is annoying. I tried to disable JiT from the Tools->Options menu, but then when there is an excpetion the program just complains that there is no JiT and breaks.

does anyone have an idea?

much obliged
d
Posted

If you run it under the debugger from the IDE, the JIT debugger won't kick in. That way, you'll get all of your exceptions handed to you.
 
Share this answer
 
Comments
naotemfin 20-Jun-10 3:12am    
Thanks for the reply. Of course I am running it from the IDE debugger, or I wouldn't expect it to catch my exceptions. But still, the JIT debugger intercepts them.
Or maybe I need to answer here...

Thanks for the reply. Of course I am running it from the IDE debugger, or I wouldn't expect it to catch my exceptions. But still, the JIT debugger intercepts them. Has anyone encountered this, or has an idea how to solve it?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900