Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

IntentionCommand
Comment out block of codectrl+K+C
Remove comment around a blockctrl+K+U


Working with Node.js Web Application

Use this sample project

Begin by using the Run button on the left of VSC.

Image Added

Select the run button at the top/ Add Configuration...

From the dropdown search for "Node.js: Attach to Process"

Image Added

Code Block
languagejs
titlelaunch.json
    {
        "name": "Attach by Process ID",
        "processId": "${command:PickProcess}",
        "request": "attach",
        "skipFiles": [
            "<node_internals>/**"
        ],
        "type": "pwa-node"
    }

Now attach VSC to it using the new launch configuration you created above - as you can see here our app is the first in the list

Image Added


Refresh the browser, the breakpoints should be reached