

Go ahead and select the Launch Node and Browser option.

In the dropdown next to the Start button, you should see the following start options: Later in this article, we describe why you might want to leave the Node process running. For now, go ahead and close any lingering command prompts.

You might notice that stopping the session closes the browser showing your app, but leaves behind the command prompt window running the Node process. We will now go through a couple of ways you can debug your app.įirst, if your app is still running, press Shift + F5 or select the red stop button at the top of the window in order to stop the current session. Next, you should see the base Express app appear! Debug your app But, if you need to change settings, right-click the project in Solution Explorer, select Properties, and then go the Build or Debugging section.Ĭheck console output for messages, such as a message instructing you to update your version of Node.js. The default project settings allow you to build and debug the project. Search for Express in the search bar at the top and then select JavaScript Express Application. In the Start window (choose File > Start Window to open), select Create a new project.

Node.js is a server-side JavaScript runtime environment that executes JavaScript code.Ī package manager makes it easier to use and share Node.js source code libraries. In this article, you will learn how to use Visual Studio to build a simple Node.js web app that uses the Express framework.īefore you begin, here's a quick FAQ to introduce you to some key concepts: Applies to: Visual Studio Visual Studio for Mac Visual Studio Code
