Skip to main content

Debug Remote Environments Using Visual Studio Code

Microsoft's VS Code is the most popular IDE amongst software developers.
Using Raftt allows devs to continue working and debugging in their favorite IDE with their own setup and configuration while enjoying all the benefits of an environment running remotely.

Note

Raftt currently supports debugging Python, Go and Node.js code. Join our Slack community or contact us to enquire about upcoming support for additional languages.

Configuration

To configure VS Code to debug with Raftt, you must modify the debug configuration. This configuration differs a bit between Go, Python and Node.js.

Add the following attributes to the debug configuration in the project's launch.json file.

Note

Keeping the JSON file platform-independent makes it easier to share between team members that might use different operating systems.

"windows": {
"debugAdapterPath": "${env:HOMEPATH}/.raftt/plugins/debugpy/adapter",
},
"linux": {
"debugAdapterPath": "${env:HOME}/.raftt/plugins/debugpy/adapter",
},
"osx": {
"debugAdapterPath": "${env:HOME}/.raftt/plugins/debugpy/adapter",
},
"serviceName": <SERVICE_TO_DEBUG>

Debugging

Once the plugin is installed and configured, you can debug the service just like you would if it ran locally, e.g., add breakpoints, view symbol, and more.