Jon Erickson
Jon Erickson

Reputation: 114896

Visual Studio Debugger Mysteriously Disabled? How do I get it back?

This morning it seems that my Visual Studio debugger is disabled. When I press F5 or manually click on the "Debug > Start Debugging" menu item, the project builds and the browser opens up as expected (asp.net mvc) but the debugger doesn't start. What has happened to my IDE settings?

Upvotes: 1

Views: 3505

Answers (2)

sbohlen
sbohlen

Reputation: 2019

often this is the result of the ASPNET precompiler NOT realizing that your new binaries are new (and have breakpoints in them) so whats actually loading in the broweser is OLD code from before you set breakpoints (so of course you don't hit them).

If using IIS, recycle the app pool, do a CLEAN of the solution and then a REBUILD of the entire thing. Also, manually purge the 'temporary aspnet compiled files' way down deep under %systemroot%\Microsoft.net\framework\blah\blah

Upvotes: 3

Ganesh R.
Ganesh R.

Reputation: 4385

Just a hunch. Is debug set to true in the web.config?

Upvotes: 0

Related Questions