atom-node-debugger
atom-node-debugger copied to clipboard
(Optionally) create breakpoints by double clicking on line numbers
Just as any other IDE using debugging, it would be nice to be able to toggle breakpoint by simply double clicking on a line number in the default gutter. It could be something close to:
atom.workspace.observeTextEditors (editor) ->
gutter = editor.gutterContainer.gutterWithName('line-number')
gutter.element.addEventListener('dblclick',(e) ->
if e.target.className.indexOf("line-number") == 0
# breakpoint
)
gutter.onDidDestroy (e) ->
gutter.element.removeEventListener('dblclick');