Last active
November 16, 2018 12:05
-
-
Save jhnns/e9f8abe880f3bff66477ed17aeff0186 to your computer and use it in GitHub Desktop.
How to debug a Node.js server written in TypeScript running in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Attach to Server in Docker", | |
"port": 9222, | |
"timeout": 10000, | |
"stopOnEntry": true, | |
"cwd": "${workspaceFolder}/app/server", // the root where everything is based on | |
"localRoot": "${workspaceFolder}/app/server", // root of all server files | |
"remoteRoot": "/server", // workspace path which was set in the dockerfile | |
"outFiles": ["${workspaceFolder}/app/server/dist/src/**/*.js"], // all compiled JavaScript files | |
"sourceMaps": true, | |
"internalConsoleOptions": "neverOpen" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to use
.json5
to allow comments in the JSON file. The filename should actually belaunch.json
.