There's a patch proposed for KDevelop that shows how to do it
here.
Basically, the idea is to use two instructions:
tbreak filename:line
jump filename:line
I just tried with a very simple test file similar to yours and it works just fine.
It's probably not even that hard to add to the debugger plugin, plus a button in the toolbar and a menu entry. What's missing is an icon. Visual Studio uses a blue arrow. We could use a 50% red one instead :wink:
Adding drag&drop would be... I don't know. I haven't fiddled with that myself, neither have I toyed much with Scintilla.
BTW, now that I was testing that, wasn't there a proposal to have a field or a dockable window (with the field) for the "Send user command to debugger"? It's not like it's going to be the most used feature either, but it would be nice to have it too
Patches, as usual, are more than welcomed. If I have some more time today I may even give it a try.