Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to load one or more breakpoints error in Visual Studio 2013

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.

like image 925
Embedd_0913 Avatar asked Jul 20 '09 06:07

Embedd_0913


People also ask

How do I fix breakpoint in Visual Studio?

Hover over the breakpoint symbol, choose the Settings icon, and then select Remove breakpoint once hit in the Breakpoint Settings window.

Why is my breakpoint not working in Visual Studio code?

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.

How do I import breakpoints in Visual Studio?

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.


1 Answers

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?

like image 117
sbi Avatar answered Oct 03 '22 20:10

sbi