weird break point
-
Hi! I have really weird break point. Look at my screen shoot http://www.mapsea.com/vs.jpg First break is normal and can stop when program run to that position. Second break show with a question symbol inside. move the mouse cursor over it. It say the break won't be hit for no runnable code associated with it. But I can stop at the first position and get to the second one by trace step by step. In fact, the lines below that has the same bad behaviour, the lines above it act as normal break. I really don't know what's wrong. Is it a bug of Visual Studio or a my own fault? It happens in several files in my workspace. I can't bear it any longer. I have rebuild the project several times, but with same result. Anyone know the solution to get rid of it? Thanks!!
-
Hi! I have really weird break point. Look at my screen shoot http://www.mapsea.com/vs.jpg First break is normal and can stop when program run to that position. Second break show with a question symbol inside. move the mouse cursor over it. It say the break won't be hit for no runnable code associated with it. But I can stop at the first position and get to the second one by trace step by step. In fact, the lines below that has the same bad behaviour, the lines above it act as normal break. I really don't know what's wrong. Is it a bug of Visual Studio or a my own fault? It happens in several files in my workspace. I can't bear it any longer. I have rebuild the project several times, but with same result. Anyone know the solution to get rid of it? Thanks!!
I had a similar problem when I had an assembly with the same version number in the GAC as the one I was building. Removing the file from GAC was the solution. HTH :) leppie::AllocCPArticle("Zee blog");
Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it. -
I had a similar problem when I had an assembly with the same version number in the GAC as the one I was building. Removing the file from GAC was the solution. HTH :) leppie::AllocCPArticle("Zee blog");
Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it. -
Hi! I have really weird break point. Look at my screen shoot http://www.mapsea.com/vs.jpg First break is normal and can stop when program run to that position. Second break show with a question symbol inside. move the mouse cursor over it. It say the break won't be hit for no runnable code associated with it. But I can stop at the first position and get to the second one by trace step by step. In fact, the lines below that has the same bad behaviour, the lines above it act as normal break. I really don't know what's wrong. Is it a bug of Visual Studio or a my own fault? It happens in several files in my workspace. I can't bear it any longer. I have rebuild the project several times, but with same result. Anyone know the solution to get rid of it? Thanks!!
Hi novachen, I dont know why this is happening, but to explicitly break at some point, instead of using a breakpoint, try using
System.Diagnostics.Debugger.Break();
Do let me know if it helps.. Cheers, Rahul I do not understand what I do. For what I want to do I do not do, but what I hate I do. - Romans 7:15