Skip to content

Instantly share code, notes, and snippets.

@barisbll
Last active June 1, 2023 08:50
Show Gist options
  • Select an option

  • Save barisbll/b37b0b5b1d509a850a19e510ae3db2d4 to your computer and use it in GitHub Desktop.

Select an option

Save barisbll/b37b0b5b1d509a850a19e510ae3db2d4 to your computer and use it in GitHub Desktop.

Revisions

  1. barisbll revised this gist Jun 1, 2023. 1 changed file with 4 additions and 5 deletions.
    9 changes: 4 additions & 5 deletions launch.json
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,8 @@
    // First build your application exp: npm run build
    // Then run the index.js on debug mode exp: node --inspect ./dist/index.js
    // For a running server on kubernetes after the ssh connection you can send a signal to process to open the debug mode
    // exp: https://medium.com/hackernoon/debugging-node-without-restarting-processes-bd5d5c98f200

    {
    // First build your application exp: npm run build
    // Then run the index.js on debug mode exp: node --inspect ./dist/index.js
    // For a running server on kubernetes after the ssh connection you can send a signal to process to open the debug mode
    // exp: https://medium.com/hackernoon/debugging-node-without-restarting-processes-bd5d5c98f200

    "version": "0.2.0",
    "configurations": [
  2. barisbll revised this gist Jun 1, 2023. 1 changed file with 23 additions and 12 deletions.
    35 changes: 23 additions & 12 deletions launch.json
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,25 @@
    // First build your application exp: npm run build
    // Then run the index.js on debug mode exp: node --inspect ./dist/index.js
    // For a running server on kubernetes after the ssh connection you can send a signal to process to open the debug mode
    // exp: https://medium.com/hackernoon/debugging-node-without-restarting-processes-bd5d5c98f200

    {
    "name": "Attach to Process",
    "type": "node",
    "request": "attach",
    "port": 9229,
    "localRoot": "${workspaceFolder}/dist",
    "remoteRoot": "/app/dist/",
    "outFiles": [
    "${workspaceFolder}/dist/**/*.js"
    ],
    "skipFiles": [
    "<node_internals>/**/*.js"
    ]

    "version": "0.2.0",
    "configurations": [
    {
    "type": "node",
    "name": "Attach to Process",
    "request": "attach",
    "port": 9229,
    "localRoot": "${workspaceFolder}/dist",
    "remoteRoot": "/app/dist/",
    "outFiles": [
    "${workspaceFolder}/dist/**/*.js"
    ],
    "skipFiles": [
    "<node_internals>/**/*.js"
    ]
    }
    ]
    }
  3. barisbll created this gist Feb 21, 2023.
    14 changes: 14 additions & 0 deletions launch.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    {
    "name": "Attach to Process",
    "type": "node",
    "request": "attach",
    "port": 9229,
    "localRoot": "${workspaceFolder}/dist",
    "remoteRoot": "/app/dist/",
    "outFiles": [
    "${workspaceFolder}/dist/**/*.js"
    ],
    "skipFiles": [
    "<node_internals>/**/*.js"
    ]
    }