daveleroy/SublimeDebugger

Toggle breakpoint at right-click position

Closed this issue · 3 comments

kcfnmi commented

Currently it toggles the breakpoint at the line the cursor is (editing line).

Screen.Recording.2024-01-08.at.16.44.23.mp4

I don't this its possible to change this and this is also how other packages like LSP behave

I think it is possible to get the x, y positions of the mouse from the Event object, if you specify a want_event method in the toggle breakpoint command , see https://www.sublimetext.com/docs/api_reference.html#sublime.Event

If someone wants to support this they can look into it but I don't have any plans to do it.

The commands that would use want_event would need to support calls with and without the event dict since anyone can call the commands directly or from the command palette.