Groups | Blog | Home
all groups > visual studio .net debugging > november 2003 >

visual studio .net debugging : Can't clear breakpoints while debugging



John
11/19/2003 6:43:34 AM
When I am debugging, I try to clear a breakpoint because
I don't need it anymore. Problem is the breakpoint
doesn't clear, it is simply disabled. So when I start
debugging again the breakpoint reappears. This sucks. I
don't want to have to stop debugging every time I want to
clear a breakpoint. Previous versions of visual studio
did not have this "feature". Is there a switch somewhere
dverma NO[at]SPAM online.microsoft.com
12/8/2003 10:49:17 PM
Hi John,

You can remove a bp anytime you want, it is getting disabled because you
might be performing the actions for disable.

To remove a bp, right click the line and select "remove breakpoint" from
the context menu. Or you can delete the bp from the Breakpoints Window
(debug->windows->breakpoints). Or simply press F9 to remove the bp if it is
a line bp.

Regards,
Deeptanshu.

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
John
12/18/2003 3:20:05 PM
I know how to clear a breakpoint. What I am saying that
if I hit F9, it doesn't actually clear it, it disables
it. So the next time that i debug the breakpoint is back.
One thing that i did not realise is that this is only a
problem when I am debugging with nUnit. Has anyone else
seen this issue?


[quoted text, click to view]
dverma NO[at]SPAM online.microsoft.com
12/23/2003 7:52:29 PM
Hi!

F9 should not disable, but toggle the BP. Could you please check under
Tools->Options->Environment->Keyboard if the keys have been re-mapped?

Thanks,
D.V.

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
anjumniaz NO[at]SPAM yahoo.com
12/29/2003 6:27:56 AM
John,

It happens when you are in debugging. To clear the breakpoints
permantly, you have to clear the break point in edit mode. I dont know
the reason, but it happens at some computers, while others are
uneffected.

I am living with the bug, so have no solution to offer.

Regards,
Anjum Niaz


[quoted text, click to view]
John
1/6/2004 8:13:05 AM
As you requested, I did verify that the keys have not
been re-mapped. Also, it doesn't matter if I press F9, or
click on the little red dot in the left margin, or go to
the the breakpoints window, or "right click" on the line
of code that the breakpoint resides and select "Remove
Breakpoint", the breakpoint will be disabled rather than
removed while I am debugging with nUnit. The only way
that i can remove the breakpoint while debugging with
nUnit is if I select "Clear all breakpoints" from the
debug menu. This is not desireable since there are
breakpoints that I want to keep.

On the other hand if I am debugging my code while not
using nUnit, I am able to remove the breakpoints.

Thanks,
John

[quoted text, click to view]
jsermini NO[at]SPAM yahoo.com
1/6/2004 8:24:55 AM
Anjum,

Thanks for your feedback. One thing that I have learned
is that if you go to the dreakpoints window while
debugging, you can right click on the breakpoint that you
want to remove, and select delete to get rid of it...

John


[quoted text, click to view]
AddThis Social Bookmark Button