Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio 2008 crashes when starting to debug

When I press F5, everything compiles fine, but when the app is to be started, VS crashes, showing the "Just in time debugger" dialog.

More than one (similar) solution has this problem. A new solution containing just a form, works. This problem started out of the blue, I have made no changes to the environment as far as I can understand.

I can start the app without debugging (ctrl+F5), and then attach the debugger.

I'm using VS 2008 sp 1.

like image 854
kaze Avatar asked May 19 '09 10:05

kaze


2 Answers

Never seen this issue, have you tried turning off all your plug-ins like reSharper, CodeRush, etc.?


Update: When worst comes to worst I usually try this command line.

devenv.exe /ResetSettings
devenv.exe /ResetSkipPkgs 
devenv.exe /Setup

try all these you can do them all at once or do them individually it is up to you. But be aware that you will be deleting all your settings that you have customized in to Visual Studio, so you may want to back them up.

The last thing you can try is this, to see if the problem is with something weird that is running.

devenv.exe /SafeMode

Starts Visual Studio in safe mode, and loads only the default environment and services, and shipped versions of third-party packages.

like image 192
Nick Berardi Avatar answered Nov 03 '22 14:11

Nick Berardi


I've found the problem now. I had "Step framework source" enabled, which somehow broke the debugger (strange though, because it usually works). Turning that off, made me debug as usual again.

like image 33
kaze Avatar answered Nov 03 '22 13:11

kaze