My Visual Studio is behaving strangely. I have no breakpoints in my projects but whenever I start Visual Studio, an error message comes up showing that it's unable to load one or more breakpoints. Secondly, I have 10 projects in my solution - I set one as a startup project but Visual studio is not saving this information. I have to set it every time I open the solution.
Hover over the breakpoint symbol, choose the Settings icon, and then select Remove breakpoint once hit in the Breakpoint Settings window.
If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.
If you delete all the breakpoints from your code at any time, you can easily import them by just clicking on the “ Import “ breakpoints button. This will restore all of your saved breakpoints. Note: Breakpoint Import depends on the line number where you have set your breakpoint earlier.
Re the breakpoint problem: Have you debugged into assembler? You might have accidentally set a breakpoint on some assembler instruction. Look into the breakpoint list (Debug->Windows->Breakpoints; it's Alt+F9 for me) to see which breakpoints are set for the solution. Of course, source and binary not matching might also cause this. Alternatively the following might help, too.
Re the startup project: Visual Studio saves all user-specific data regarding a solution in a *.suo
file which it puts right beside the *.sln
file. This might have gotten corrupted (although I've never seen this). Try to delete it and see whether this helps. On a second thought, both problems might be caused by someone having checked in the *.suo
file located in a hidden .vs
directory. Have you checked this?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With