I am experiencing some weird behaviors when debugging my MVC Web Application. Some days I experience these issues, but other days everything works fine.
- The breakpoints in my javascript files are not getting hit. I get the dreaded "The breakpoint will not currently be hit. No symbols have been loaded for this document." error.
- The debugger will detach from the process without me clicking the Stop Debugging button.
I have tried everything I can think of including:
- Refreshing the page in IE to force the browser to get the latest version of the javascript files.
- Clean / Rebuild the application in Visual Studio
- Close / Reopen Visual Studio
- Delete all files from bin and obj folders and rebuild
- Cleaned up all old sites from my IIS Express applicationhost.config file
- Installed VS2013 Update 4
- Deleted / Reinstalled VS2013
- Removed / Added IE11
- Installed VS2015. Same behavior as VS2013
- Deleted all local project files and performed a "Get Latest" from TFS
I can manually attach the debugger to an iexplore process and then I'm able to debug that specific file, but it seems like there is a different iexplore instance for each javascript file. I end up having to guess which one to use for each javascript file. To top it off, the debugger keeps detaching in the middle of me trying to find the right process to attach to. It is nearly impossible, and definitely not feasible to try and debug this way.
Our solution is in TFS, we're using IS Express and the three other developers on our team have none of the problems I have. We all have the exact same hardware.
Another clue that might help is that we are using the OWIN functionality to connect to ACS for security. If I bypass authentication through OWIN / ACS I can step into the javascript. This, however, creates other problems since the code is expecting me to be authenticated. This is not an acceptable workaround and, again, the other developers on the team are using OWIN/ACS and do not have any problems.
I'm extremely frustrated and at a loss for how to go about figuring our what is wrong with my environment. Any help will be greatly appreciated.