Home Dashboard Directory Help
Search

Can not set breakpoint using the Code Definition Window by vga


Status: 

Closed
 as Won't Fix Help for as Won't Fix


1
0
Sign in
to vote
Type: Bug
ID: 623509
Opened: 11/20/2010 6:40:56 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

MSDN says here: http://msdn.microsoft.com/en-us/library/f5yx24a6%28VS.80%29.aspx that you should be able to set breakpoints using the Code Definition Window but this doesn't work.

I believe this is related to a bug in the debugger which I entered through Connect ID 623508 - "Debugger doesn't properly handle VSFPROPID_ToolWindowDocCookie for enabling/disabling ToggleBreakpoint command"
Details
Sign in to post a comment.
Posted by Microsoft on 4/1/2011 at 3:19 PM
Hi Victor,

Yes, that's what I meant by 'focus' on the breakpoint margin, and you're right that it's not really a workaround; we just wanted to check whether you were seeing the same behavior. The editor's triage team has unfortunately decided to Won't Fix this bug, so I'm resolving it accordingly, but it will remain in our database to be revisited for future releases. And if anyone else is reading this and feels strongly about this bug, please do vote it up; the more votes any given bug has, the more strongly we tend to reconsider it.

Thanks again for your feedback,
Brittany
Posted by vga on 2/8/2011 at 10:56 PM
Hi Brittany,

>>>F9 seems to work if 'focus' within the Code Definition Window is on the breakpoint margin
>>>(e.g. you click on the margin directly and then press F9 to toggle a breakpoint)

What do you mean by "focus is on the breakpoint margin"? How would you just put focus on that margin without actually clicking on it and executing the Toggle BP command?

If you click on the margin with the mouse you've effectively executed the toggle command and set a breakpoint there which will work (but it is not what I'm detailing below).

>>>If F9 just doesn't work at all, regardless of where in the window you click
>>>we'd like to work with you further to find out why.

Pressing F9 won't work at all, no matter where the focus is. Most probably the reason for this is because that toolwindow is read-only and thus "eating" the Toggle BP command fired by the respective keybinding, in this case F9.

The easy fix could be: Wont Fix - Use your mouse instead! :)

But you know... once you're used to the keyboard having to resort to the mouse hurts :)
Posted by Microsoft on 2/1/2011 at 4:28 PM
Hi Victor,

Thank you for reporting this issue and especially for the detailed repro steps. Please also accept our apologies for the delayed response to this bug report. We try to respond to each bug within a few weeks, but recently the volume of bugs and buildup of reports over the December-January holiday weeks has led to a backlog of Connect issues, and we are sorry for the delay.

We were able to reproduce this problem, but we also think we know why it was initially tough to repro. F9 seems to work if 'focus' within the Code Definition Window is on the breakpoint margin (e.g. you click on the margin directly and then press F9 to toggle a breakpoint) but not if it's on the text in the Code Definition Window (e.g. you click somewhere else in the window and then press F9). Is this consistent with your experience? If F9 just doesn't work at all, regardless of where in the window you click, we'd like to work with you further to find out why.

Thanks for using Visual Studio 2010 and sending your feedback! We hope to hear from you soon.

Brittany Behrens
Program Manager, Visual Studio Editor team
http://blogs.msdn.com/b/visualstudio
Posted by Microsoft on 11/21/2010 at 11:22 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by vga on 11/21/2010 at 9:35 PM
This should be really easy to repro, please try the following exact repro steps:

1) open any class with a method where you could put a breakpoint on
2) open the "Code Definition Window" (View -> Code Definition Window or Ctrl+W, D)
3) inside the "Code Definition Window" move to the method where you want to set a breakpoint
4) Press F9 (Toggle breakpoint command) and nothing will happen, no breakpoint is toggled.

I've tried the above in 3 different boxes and I can repro this on all them.

Posted by Microsoft on 11/21/2010 at 6:15 PM
Thanks for reporting the issue.

In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue with the steps you provided.

Please export and reset environment settings file by clicking Tools-> Import and Export Settings, after that, please send it to us so that we can conduct further.

Please try this (from a Visual Studio command prompt with devenv in the path):

devenv /resetuserdata

It would be greatly appreciated if you could provide us with that information as quickly as possible. If we do not hear back from you within 7 days, we will close this issue.

Thanks again for your efforts and we look forward to hearing from you.
Microsoft Visual Studio Connect Support Team

Sign in to post a workaround.