Skip to content

can't create breakpoint on current line because light bulb is in the way #25174

Closed

Description

@greay
  • VSCode Version: Code 1.11.2 (6eaebe3, 2017-04-13T07:56:42.517Z)
  • OS Version: Darwin x64 16.5.0
  • Extensions:
Extension Author Version
uncrustify LaurentTreguier 1.5.1
unity-debug Unity 1.2.0
vscode-nuget-package-manager jmrog 0.0.2
cpptools ms-vscode 0.10.3
csharp ms-vscode 1.9.0
vscode-icons robertohuertasm 7.3.0

There has to be a better way. Make room for both? Don't give me the option to extract a method unless I actually have text selected? 9 times out of 10, when I go to set a breakpoint, it's on the current line. so I nearly always have to move the cursor before I can.

Activity

  1. added
    ux
    on Apr 24, 2017
  2. jrieken commented on Apr 24, 2017

    @jrieken
    Contributor

    greay (@greay) You can toggle breakpoints using F9 or the F1 command palette

  3. added
    under-discussion
    on Apr 24, 2017
  4. greay commented on Apr 24, 2017

    @greay
    Author

    that's great, but there's absolutely no feedback when you do that, because the lightbulb is obscuring the breakpoint mark in the gutter.

  5. jrieken commented on Apr 24, 2017

    @jrieken
    Contributor

    Yeah, we know that the gutter on the left is not easy to share. Today we have a rule that always respect the icon that came first.

    cc Steven Clarke (@stevencl)

  6. stevencl commented on Apr 25, 2017

    @stevencl
    Member

    An alternative would be for us to draw the lightbulb in the space between the start of the line and the line number. We currently use at least some of this space to show the block expandos.

    image

  7. jrieken commented on Apr 25, 2017

    @jrieken
    Contributor

    We currently use at least some of this space to show the block expandos.

    Doesn't that mean we'll have a similar problem, just with expandos vs light bulb?

  8. stevencl commented on Apr 25, 2017

    @stevencl
    Member

    No, we would make sure that it fits. I wouldn't want to suggest something that would just make the problem reappear elsewhere. Something like so:
    image

    We might also want to fine tune the region lines and expandos so that the expando sits a few pixels closer to the lines.

    Basically we would need to spend some time laying out the different pieces of UI so that they fit well without significantly eating into horizontal real estate.

  9. added
    debug
    on Apr 25, 2017
  10. jrieken commented on Apr 25, 2017

    @jrieken
    Contributor

    Unsure, left of the expandos is the dirty diff decoration... Should we than make more room and shift things a little?

    screen shot 2017-04-25 at 17 48 55

  11. crysyn commented on May 10, 2017

    @crysyn

    Similar bug in the opposite manner.

    Was going to delete a line of code by selecting it from the margin, Did a double click or so and selected it and put a breakpoint down. Tried to get rid of the breakpoint and an unrendered lightbulb kept giving me its context menu instead of removing the displayed breakpoint.

    VSCode Version:
    Version 1.13.0-insider (1.13.0-insider)
    c615b43
    2017-05-09T06:02:40.607Z

  12. 34 remaining items

  13. jtsom commented on Sep 22, 2017

    @jtsom

    Just a point of info.. with the way it is now, with the lightbulb showing up almost anywhere - in front of the line with the issue, above the line, below the line, I keep thinking the issue is where the lightbulb is - more often than not above the actual line with the problem... and I more often than not see the bulb over/obscuring text.

    The screenshot that Daniel Imms (@Tyriar) posted is a great example - it's hard to know where the issue is, not to mention with the lightbulb plopped on top of the text, it is very confusing and almost gets lost.

  14. sean-mcmanus commented on Sep 22, 2017

    @sean-mcmanus
    Contributor

    Update: With the Insiders build and our pending 0.13.0 C++ extension update, I frequently get the tooltip for the current line covering up the code action for the current line.
    image . The tooltip error can be fixed via the code action, but the tooltip makes the code action hidden/unclickable. Please fix this scenario ASAP. If anything, force the code action (light bulb) and tooltip to not overlap.

  15. jrieken commented on Sep 25, 2017

    @jrieken
    Contributor

    sep-25-2017 14-59-15

    This is a rough sketch of how it would look and feel when showing the lightbulb in the hover. I believe it has potential tho needs to much polish for a quick change (in September). Things that should be improved with

    • only show on errors/warnings
    • don't show two light bulbs
    • show the light bulb message next to the error message
  16. jtsom commented on Sep 25, 2017

    @jtsom

    That's not bad, but I think the position of the lightbulb itself is the issue. In your picture, if there was any code on line 58, the lightbulb would be drawn over that code, potentially causing confusion as to where the problem is, or even lose the bulb in a mass of text (see Daniel Imms (@Tyriar) 's graphic above)

  17. jrieken commented on Sep 25, 2017

    @jrieken
    Contributor

    if there was any code on line 58, the lightbulb would be drawn over that code,

    Yes, I already understood that the first time you mentioned it. Note that I wrote: "Things that should be improved...don't show two light bulbs"

  18. jrieken commented on Sep 12, 2018

    @jrieken
    Contributor

    The light bulb isn't in the gutter anymore but inside the text. That's the new design which as proven to be working best, albeit some issues.

  19. locked and limited conversation to collaborators on Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugunder-discussionux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions