vscode-kotlin
vscode-kotlin copied to clipboard
Support no folder debugging
Hi VS Code PM here 👋
- Purple no folder VS Code -> create a new
kotlin
file - Press
F5
-> notice how we offer the user to download your extension 👏 - Now the user presses
F5
again and wants to debug, but nothing happens sincekotlin
is not supporting single folder debugging
Easiest to do this is to have a dynamic resolveDebugConfiguartion
that will provide a launch configuration on the fly. Example
Apart from that consider contributing to the Editor title area menu, such that a Play button would appear in the Editor Title area (picture below). Example how to do this https://github.com/microsoft/vscode-mock-debug/blob/main/package.json#L80
I think both of these are super important and would really love that we improve this experience 💯
Let me know if I can help somehow. I am also open to a quick 30 min meeting where we can discuss about the new cool VS Code debug features that kotlin could potentially adopt.
Hi, thanks for the note.
Since this extension's debugger is just a thin wrapper around kotlin-debug-adapter
, can we provide such a dynamic debug configuration on the DAP server side or do we need to do it on the VSCode side (in this repo)?
I agree that no-folder-debugging would be cool, but I can't make any promises on when I'll get around to implementing that.
You can do this on the VS Code side (in this repo). A vscode extension implements the resolveDebugConfiguartion
call.
You can see more details in the example that I have linked.
It would be pretty cool to have this, whenever you find time... Thanks 👏