Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Breakpoint Bar Not Present (Glyph margin, Overview Ruler)

So I hit some weird combination of keystrokes, and now my visual studio looks all jacked up and I can't figure out how to customize it back to what it was. I've googled it lots, and I can't seem to find out where to fix it all.

It's just the code editor that's been bugging me for weeks. I figured some of you could probably help.

It looks like this: Visual Studio Code Window Messed Up

I just want the dang lines in front of the code to go away, and to be able to click to the left of the numbered lines to get a breakpoint again.

like image 983
Ryan Avatar asked Jun 28 '12 22:06

Ryan


People also ask

How do I enable breakpoints in Visual Studio?

To set a breakpoint in source code: Click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.

How do I enable breakpoints in Vscode?

Breakpoints can be toggled by clicking on the editor margin or using F9 on the current line. Finer breakpoint control (enable/disable/reapply) can be done in the Run and Debug view's BREAKPOINTS section.

How do I step through a breakpoint in Visual Studio?

Click the Debug | Step Into menu item or press the F11 key to step into any property or method for debugging. You can then continue the line by line execution by pressing F10 or continue ...


2 Answers

  1. Go to Tools → Options → Text Editor → General
  2. Check Indicator Margin

enter image description here

I'm not sure what »dang lines in front of the code« you mean, though. If you're referring to the yellow unsaved changes indicator, that's the Selection Margin in the options above. If you mean the dots (representing spaces), then Edit → Advanced → View White Space or press Ctrl+E, S.

like image 134
Joey Avatar answered Sep 19 '22 18:09

Joey


For Visual Studio Code (aka VSCode), and my years later
almost exact same question (whereas I misinterpreted the
setting description), I found my similar but different answer:

Enable it like following in Settings GUI:

Editor: Glyph Margin
🗹 Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.

Or write equivalent to following in settings.json:

  "editor.glyphMargin": true,
like image 30
vike Avatar answered Sep 21 '22 18:09

vike