Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only column breakpoints should show inline bp indicator #21950

Closed
roblourens opened this issue Mar 4, 2017 · 5 comments
Closed

Only column breakpoints should show inline bp indicator #21950

roblourens opened this issue Mar 4, 2017 · 5 comments
Assignees
Milestone

Comments

@roblourens
Copy link
Member

My debug adapters return column locations of BPs, even when a column BP wasn't set. As a result, my code ends up full of bp indicators:

image

Should we

  • only show the column indicators when the user set a column bp
  • show the column indicators unless there is only whitespace before that position
  • or leave it up to the debug adapter to return a column or not
@isidorn isidorn added this to the March 2017 milestone Mar 6, 2017
@chrisdias
Copy link
Member

I'm seeing lots of red dots in regular development of a TypeScript based extension. Seems like they appear after I step across a line with multiple statements. Its easy to do, all you need is a for loop and you are in this state.

@isidorn
Copy link
Contributor

isidorn commented Mar 7, 2017

After discussing with @weinand we believe that it is best to do what we already specified in the previous milestone in this comment

In short the debug adapter is in charge what breakpoint should he transform into a column brekapoint. Thus an adapter should not add a column to a regular breakpoint if it is not a column breakpoint. Due to this assigning to @roblourens

@chrisdias are you talking about brekapoints or the yellow top stack frame decoration. If you are talking about red brekapoints please file a bug with reproducable steps and file it to me since for that scenario we use node and not node2

@chrisdias
Copy link
Member

#22172

@roblourens
Copy link
Member Author

roblourens commented Mar 8, 2017

This line: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/debug/electron-browser/debugService.ts#L964 makes it look like the column breakpoints should be ignored already. Is that changing?

@isidorn isidorn closed this as completed in f6f74ea Mar 8, 2017
@isidorn
Copy link
Contributor

isidorn commented Mar 8, 2017

@roblourens my mistake. I was accidently adding a column to a breakpoint when user edits a file.

And yes that line is not supposed to change I just forgot about it. So it is fine for your adapter to return columns if it did not recieve columns.
And the adapter is in charge if it wants to diable column support by potentially always returning column: undefined

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants