Skip to content

Commit

Permalink
Fix debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mariovyord committed Dec 15, 2023
1 parent a8ca423 commit f84834e
Show file tree
Hide file tree
Showing 8 changed files with 350 additions and 20 deletions.
24 changes: 15 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Docker Node.js Launch",
"type": "docker",
"type": "node",
"request": "launch",
"preLaunchTask": "docker-run: debug",
"platform": "node",
"node": {
"port": 9229,
"localRoot": ".",
"remoteRoot": "/usr/src/app"
}
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**",
"${workspaceFolder}/node_modules/**"
],
"program": "${workspaceFolder}/dist/index.js",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"env": { "NODE_ENV": "development" },
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
],
"preLaunchTask": "npm run build"
}
]
}
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "npm run build",
"type": "npm",
"script": "build",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Loading

0 comments on commit f84834e

Please sign in to comment.