Nodejs (Remote + Vscode)

R3zk0n ยท October 2, 2025

Contents

    NodeJS Server Side Code Debugging

    Remote Debugging (with .vscode/launch.json on server)

    Via standard remote access:

    • Modify IP address in launch.json to point to remote server
    • Attach to directory and start debugging Via CLI (port 9228):
    • docker-compose -f ~/chips/docker-compose.yml exec chips node --inspect=0.0.0.0:9228
    • The benefit of debugging via the cli is that we can now set breakpoints in individual libraries, load them in the interactive cli, and run individual methods without making changes to the web application and reloading every time.

    Twitter, Facebook