views:

524

answers:

3

Hi All,

My Visual Studio is behaving strangely.Actually I have no breakpoints in my projects but whenever i start my Visual Studio an error message comes up showing that it's unable to load one or more breakpoints. Second , i have 10 projects in my solution i make one projrct as a startup project but Visual studio is not saving this information. I have to set it everytime i open the solution.

Please give me some ideas to remove this error.

A: 

Can you give us more information on why Visual Studio can't load the break point? If you hover over the breakpoint icon it should provide a tooltip message saying why the breakpoint is unable to load.

The most common reason for this is a mismatch between the source file and the binary you are debugging. It can happen if you F5 with build errors for instance. Or F5 against a deployed DLL after you have changed the source for the DLL. Try rebuilding and potentially redeploying as appropriate and see if that helps your problem.

As for the startup information. Try updating it, hitting save all and restarting Visual Studio. That should ensure the information is saved.

JaredPar
A: 

There may be an breakpoint that disappered (but how?). Please try Ctrl+Shift+F9 to 'Delete All Breakpoints' (VS2008).

Ahmet Kakıcı
+1  A: 

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. Have you checked this?

sbi