VS code debug configuration for Typescript

PHOTO EMBED

Sun Mar 12 2023 17:26:12 GMT+0000 (Coordinated Universal Time)

Saved by @mtommasi

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "resolveSourceMapLocations": [
              "${workspaceFolder}/**",
              "!**/node_modules/**"
            ],
            "type": "node",
            "request": "launch",
            "name": "Debug jwt server",
            "skipFiles": [
              "<node_internals>/**",
              "**/node_modules/**",
              "${workspaceFolder}/src/index.ts"
            ],
            "outFiles": ["${workspaceFolder}/**/*.js"],
            "runtimeExecutable": "npm",
            "runtimeArgs": ["--prefix", "${workspaceFolder}/Node-JS udemy","run", "start:jwt",],
            "console": "externalTerminal",
            "env": {
              "DB_PATH":"./db/product-db.json"
            }
          }
    ]
}
content_copyCOPY