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

(Optionally) create breakpoints by double clicking on line numbers

Open lzambarda opened this issue 8 years ago • 0 comments

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');

lzambarda avatar Aug 31 '17 13:08 lzambarda