Arkaedan / vscode-epsilon

VS Code extension that provides highlighting for the Eclipse Epsilon languages and Emfatic
The Unlicense
3 stars 4 forks source link

Add remote debugging via DAP #16

Closed agarciadom closed 6 months ago

agarciadom commented 6 months ago

This commit adds the minimal code needed to have VS Code attach to a running Epsilon debug adapter over TCP (available from Epsilon 2.6.0). The approach is to have the Ant tasks start the server and wait for VS Code to attach to them before starting the Epsilon script to be debugged.

This only requires using a DebugAdapterDescriptorFactory that looks at the "port" in the launch.json entry being executed, and passes that on to the standard DebugAdapterServer class. All the debugging complexity will be hidden behind the DAP server.

agarciadom commented 6 months ago

Just made two minor tweaks to avoid having files that do not end on a newline.

Arkaedan commented 6 months ago

This is so exciting! Thank you!

agarciadom commented 6 months ago

No problem! BTW, I've documented how to use it here:

https://eclipse.dev/epsilon/doc/articles/debugger/#microsoft-visual-studio-code