Now, before pressing F5 or selecting the Start button again, set a breakpoint in index.js (in the routes folder) by selecting the left gutter before the following line of code: res.render('index', \\public",Ĭlick Options for a list of attributes you can use to enhance your debugging experience. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |