Reputation: 27384
I am running an asp.net project onto a local IIS Express server and none of my breakpoints seem to be active. Ive tried switching to normal IIS but to no avail
I managed to get a breakpoint to hit in Global.asax.cs
but everything else (such as my BaseController
) doesnt get hit.
It directs me to my login page (which I am trying to remove, but seemingly cant) yet the Logon function in the AccountController never gets hit either.
I simply get the hollow red circle where the breakpoint is set that tells me my source doesnt match the original version. Ive tried restarting VS, cleaning the solution, even manually deleting the bin files.
Any ideas?
Answers to questions
<compilation debug="true" targetFramework="4.0">
is in my web.configUpvotes: 1
Views: 431
Reputation: 27384
It turns out the issue was due to my build directory, I found this answer which made me check and after fixing this it instantly started to work properly!
Upvotes: 0
Reputation: 34632
I simply get the hollow red circle where the breakpoint is set that tells me my source doesnt match the original version.
This may be the clue to what is going wrong. I had this same exact problem just recently, and I had to turn off "Just My Code" as part of the debugging options. To do this, in Visual Studio, go to:
Tools > Options > Debugging > General
and then clear or enable Just My Code. Clean and Rebuild as others have suggested and that should fix your issue with breakpoints. (It did mine, at least.)
Upvotes: 0
Reputation: 5822
a few things to try:
CLEAN solution then REBUILD
Debug > Attach to process and attach it to the IIS worker process if you are hosting the site in IIS.
Cleaning the temp ASP.NET files
Making sure that the site is built in DEBUG mode - sometimes even setting it into RELEASE mode will not hit the breakpoints as all the symbols are stripped out but even then other factors to consider in this context
Delete all your breakpoints and just add 1 - what happens?
Upvotes: 0
Reputation: 1816
How about deleting Temporary ASP.NET files?
Located at: C:\Windows\Microsoft.NET\Framework64\<version_number>\Temporary ASP.NET Files
Upvotes: 0
Reputation: 1498
have you wrote in web.config debug = true
and check the internet explorer setting is degugging in other is disabled? for internet setting check internet debug settings
Upvotes: 1