roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

Breakpoint Highlight - C #

Open vsfeedback opened this issue 7 years ago • 17 comments

This issue has been moved from a ticket on Developer Community.


There is no settings to disable breakpoint LINE highlight. I see ther is one for C++ but not for C#.

The red is too strong, you also lose the context highligting on th eline of you set the colour to black or white.


Original Comments

Jane Wu [MSFT] on 9/17/2019, 07:05 PM:

Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We’ll provide an update once the issue has been triaged by the product team.

vsfeedback avatar Oct 07 '19 21:10 vsfeedback

cc @tmat , @JoeRobich (potential adornment for fonts &color)

jinujoseph avatar Oct 08 '19 19:10 jinujoseph

The debugger team owns breakpoint visualization. @r-ramesh

tmat avatar Oct 08 '19 20:10 tmat

The breakpoint line gets different hightlights for different segments of texts in the line. I could never figure out how to make this line easy to read because of the bad contrast between background and text color. I am using dark theme. Please fix it. This issue has existed for years in the different versions of Visual Studio.

abukres avatar Nov 19 '19 20:11 abukres

This has been bugging me for years too.. I used Rider while had working machine macbook pro and it'd be great if VS.net had similar debug line highlighting..

image

jack0fshad0ws avatar Dec 21 '19 02:12 jack0fshad0ws

@tmat can you move this to the debugger UI team? i.e. pinging @r-ramesh doesn't seem to have been effective. The bug should just move to them.

CyrusNajmabadi avatar Dec 21 '19 23:12 CyrusNajmabadi

@tmat @CyrusNajmabadi Sorry this slipped through my mentions. Yes, you can file a bug and route this over to debugger.

r-ramesh avatar Jan 28 '20 15:01 r-ramesh

Not sure if @r-ramesh needs someone to file the bug, or if this (39114) is enough. Has this been taken into the todo-list or should someone file the bug in another place (where?).

My comments: I am (also) trying to remove the red background on active breakpoint lines and the white outline on inactive breakpoint lines, as it is distractive - both the red background and the missing color coding - but it doesn't seem to be possible: the normal text colorings cannot come back and it is a bit burdensome to find the correct colors. And the Options-dialog is -missing an- -Apply-button-.

There should be a way to disable each display item coloring, so it falls back to default text/whatever other coloring that would be applied, if not a breakpoint. And/or the Item foreground and Item background dropdown menus should include (maybe as a collapsible subitem in the dropdown menus) all the other Display items, so you could sync with another display item's coloring.

I hope this is implemented somehow, as it is quite annoying. I'm removing breakpoints just to read my code better :-)

SvendK avatar Feb 25 '20 09:02 SvendK

Oh!!! I just figured out a solution to actually getting this to work: Removing the red background on active breakpoint lines and the white outline on inactive breakpoint lines! The hidden thing is to RESTART VISUAL STUDIO after setting this up!

This works for VS dark theme... Go to Tools->Options->Environment->Fonts and Colors

Default settings Plain Text Item foreground: Default (light grey-ish) Plain Text Item background: N/A - Greyed out Breakpoint (Disabled) Item foreground: Default (grey-ish) Breakpoint (Disabled) Item background: N/A - Greyed out Breakpoint (Enabled) Item foreground: Default (white) Breakpoint (Enabled) Item background: Default (red)

I changed to Plain Text Item foreground: Black (this is personal preference - better contrast) Plain Text Item background: N/A - Greyed out Breakpoint (Disabled) Item foreground: Same as Plain text background - for me it's black Breakpoint (Disabled) Item background: N/A - Greyed out Breakpoint (Enabled) Item foreground: Automatic Breakpoint (Enabled) Item background: Automatic (I guess Automatic is "disable this rule, fallback to other rules")

Note:

  1. Changing the Breakpoint (Disabled) Foreground from Default to Black changes the Sample view from black to white background. This must be a bug?
  2. Changing the Breakpoint (Disabled) Foreground doesn't take effect in the editor window until restarting VS (outline is still light grey-ish around the line). This must be a bug?
  3. Changing the Breakpoint (Enabled) Foreground doesnt look right until restarting VS (changing from white/red to automatic/automatic renders both text and background black (unreadable) until reboot). This must be a bug?

So... it is totally possible, but the dialog itself (no apply button), preview bugs and after-close editor view bugs (restart needed) make it hard to actually make this happen. I look forward to your comments for this :)

Update: OK, while redoing this for the sake of this comment and getting the screenshots, I am actually having a hard time reproducing it. I keep having the black-on-black text on the enabled breakpoint. Let me just post this and reboot my computer, maybe that is what did it for VS...

Best regards, SvendK

image image image

SvendK avatar Feb 26 '20 15:02 SvendK

This has been bugging me for years too.. I used Rider while had working machine macbook pro and it'd be great if VS.net had similar debug line highlighting..

image

Oh having it like this would be perfect 🤤

Btw, is there any extension that does this currently? Is it even possible to do with an extension?

artdedeco avatar May 04 '21 19:05 artdedeco

@jinujoseph this isn't us i don't believe. can we move over internally?

CyrusNajmabadi avatar May 04 '21 21:05 CyrusNajmabadi

Moved the feedback ticket to debugger team ,

jinujoseph avatar May 05 '21 06:05 jinujoseph

this ticket is like ping-pong; you go to the ticket link above and it takes you back to this ticket. is it moving towards a resolution?

Cuneytt avatar Aug 11 '21 21:08 Cuneytt

@Cuneytt this issue is in the hands of the debugger team. They will have to decide the priority here

CyrusNajmabadi avatar Aug 12 '21 01:08 CyrusNajmabadi

As Scott in the ticket is describing it:

In the name of our lord and savior William Gates, please fix this issue. It’s existed in Visual Studio for years, and I can’t fathom how this isn’t considered a bug the UX is so bad. Losing all syntax highlighting every time you place a breakpoint in C# and replacing it with a giant blob of red text is highly distracting.

SvendK avatar Oct 07 '21 18:10 SvendK

@SvendK as mentioned. This issue is in the hands of the debugger team. The roslyn team has no involvement here. Please provide feedback on the tickets which are assigned to the actual teams who own these scenarios. Thank you.

CyrusNajmabadi avatar Oct 07 '21 19:10 CyrusNajmabadi

Is this still getting looked at? It's super annoying!

A7GER avatar Feb 14 '23 23:02 A7GER

@zackalger see https://github.com/dotnet/roslyn/issues/39114#issuecomment-938070422

CyrusNajmabadi avatar Feb 14 '23 23:02 CyrusNajmabadi