node-vim-debugger icon indicating copy to clipboard operation
node-vim-debugger copied to clipboard

Allow to delete breakpoint

Open sidorares opened this issue 11 years ago • 3 comments

If "set breakpoint" is clicked on a line with breakpoint, toggle it.

Note that it currently possible to set multiple breakpoints on one line in different columns.

Should we toggle breakpoint only is cursor is "near enough" to existing bp? ( this might be tricky, because "near enough" to me is "if set here, actual_position would be exactly the same" so it requires extra test "setBreakpoint"). Pseudo algorithm:

get breakpoints
set at current cursor position
if actual_position overlaps with existing breakpoint, delete both + delete overlapping breakpoint marker.
otherwise, add breakpoint marker

sidorares avatar Aug 31 '14 22:08 sidorares

I would really like to see this feature added as well!

Pieter-Jan avatar Sep 13 '16 12:09 Pieter-Jan

@Pieter-Jan haven't looked at this for a long time, maybe will try to do over weekend

Also would be good to move to chrome remote debugging protocol since it's part of soon to become LTS node v6 - that way it would be possible to debug node & browser simultaneously

sidorares avatar Sep 13 '16 12:09 sidorares

Any news?

xahon avatar May 13 '17 06:05 xahon