I am not being able to debug the code for a MVC4 application in VS-2012. The same code was running fine a few days back. Error as below: Breakpoint will not currently be hit. No symbols have been loaded for this document.
I have tried below possible ways:
- Cleaning and rebuilding the solution.
- Setting 'Just my code' to false and true both.
- Repaired VS.
- Cleared the bin and obj folders also related GAC and temp asp.net folder.
- Checked in Debug->Windows->Modules, it gives 'Can not find or open PDB file', when tried to load manually, it can't find the pdb file though file is present in the mentioned location.
- Checked that code is building in Debug mode with no optimization and Debug set to true in web.config file as well.
- The problem persists even if I create a new project in VS.
- Also tried reverting all the changes and took the latest version from TFS.
Any help on this is highly appreciated as I have gone through many threads but couldn't find a solution.
System.Diagnostics.Debugger.Break()
.before the line where you want to break. - Amitd