codeswing icon indicating copy to clipboard operation
codeswing copied to clipboard

[Request] - Debugger integration

Open jasonwilliams opened this issue 4 years ago • 4 comments

As the Swings can contain JS, it would be nice to have VSCode's debugger integrate with the script you add. This would allow users to set breakpoints on the script.js file and hit debug on the side bar.

A naive approach to this working would be to add a .vscode/launch.json file to the temp folder, but maybe there's better ways

jasonwilliams avatar Mar 18 '21 15:03 jasonwilliams

This would be awesome!

ryandejaegher avatar Apr 10 '21 17:04 ryandejaegher

What would be necessary to get debugging within vscode work?

TFTomSun avatar Dec 06 '22 23:12 TFTomSun

I believe we'd need to implement a VS Code debug adapter. It wouldn't be a trivial amount of work, which is why I haven't prioritized it (in addition to the fact that I haven't heard the request that many times).

lostintangent avatar Dec 27 '22 17:12 lostintangent

I believe we'd need to implement a VS Code debug adapter. It wouldn't be a trivial amount of work, which is why I haven't prioritized it (in addition to the fact that I haven't heard the request that many times).

Implementing debug adapters are usually for new languages, there are existing debuggers for JavaScript/TypeScript out the box so I don’t think that’s the case here. This would be more about integrating with the existing debugger into what Codeswing offers.

I’ve since used live preview which does something similar

jasonwilliams avatar Dec 28 '22 00:12 jasonwilliams