debugging launch json config

PHOTO EMBED

Fri Mar 21 2025 15:27:46 GMT+0000 (Coordinated Universal Time)

Saved by @StephenThevar

Typescript 
{
  // 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": [
    {
      "name": "ts-node",
      "type": "node",
      "request": "launch",
      "skipFiles": [
        "<node_internals>/**",
        "${workspaceFolder}/node_modules/**/*.js",
        "${workspaceFolder}/node_modules/**/*.ts",
      ],
      // "args": [
      //   "${relativeFile}"
      // ],
      "args": [
        "${workspaceFolder}/src/index.ts"
      ],
      "restart": true,
      "runtimeArgs": [
        // "-r",
        // "ts-node/register"
        "nodemon",
        "--watch",
        "src", // Watch the `src` folder for changes
        "--ext",
        "ts,js,json", // Watch for changes in .ts, .js, and .json files
        "--exec",
        "ts-node"
      ],
      "cwd": "${workspaceRoot}",
      "internalConsoleOptions": "openOnSessionStart",
      "runtimeExecutable": "npx"
    }
  ]
}
-------------------------------------
React

{

  // 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": [

    {

      "type": "chrome",

      "request": "launch",

      "name": "Launch Chrome against localhost",

"url": "http://localhost:3000",

      "webRoot": "${workspaceFolder}",

      "skipFiles": [

        "${workspaceFolder}/node_modules/**/*.js",

        "${workspaceFolder}/node_modules/**/*.ts",

        "${workspaceFolder}/node_modules/**/*.jsx",

        "${workspaceFolder}/node_modules/**/*.tsx",

        "**/bundler.js"

      ]

    }

  ]

}

-------------------------------------------------

Node

{

  // 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": [

    {

      "type": "node",

      "request": "launch",

      "name": "Launch Program",

      "skipFiles": [

        "<node_internals>/**",

        "${workspaceFolder}/node_modules/**/*.js",

        "${workspaceFolder}/node_modules/**/*.ts"

      ],

      "program": "${workspaceFolder}\\app.js",

      "restart": true,

      "runtimeExecutable": "nodemon",

      "console": "integratedTerminal",

      "sourceMaps": true, // I dunno what this does,

      "smartStep": true  // can remove both of these

    }

  ]

}
----------------------------------------------
content_copyCOPY