Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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.

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

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

launch.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


Refresh the browser, the breakpoints should be reached

Using SSH from VSC

  1. Install SSH - Remote tools
  2. Create a config file that contains the connection details, the file is called config with no file extension and should be placed in the /Users/<username>/.ssh folder
  3. Host sels-mc
    	HostName 130.211.75.156
    	IdentityFile ~/.ssh/gcp-key
    	User selvy

    The indentation is important

  4. Open the Remote connection


  • No labels