Edit and debug with VS Code
From the Visual Studio Code File Explorer (⇧⌘E (Windows, Linux Ctrl+Shift+E)), navigate to your new
myExpressApp folder and double-click the
app.js file to open it in the editor.
When you start typing, you'll get smart completions for the object methods and properties.
Set a breakpoint on line 10 of
app.js by clicking in the gutter to the left of the line number or by putting the cursor on the line and pressing F9. The breakpoint will be displayed as a red circle.
Now, press F5 to run your application. If you are asked how to run the application, choose Node.js.
The app will start, and you'll hit the breakpoint. You can inspect variables, create watches, and navigate the call stack.
Press F10 to step or F5 again to finish your debugging session.
You get the full development experience of Visual Studio Code connected over SSH.
Ending your SSH connection
You can end your session over SSH and go back to running VS Code locally with File > Close Remote Connection.
Congratulations, you've successfully completed this walkthrough!
Next, check out the other Remote Development extensions.
Or get them all by installing the Remote Development extension pack extension pack.