![]() If you want to use the Chrome Developer Tools, press F12 in the Chrome browser. Now, you can inspect your app state by hovering over variables currently in scope, using debugger windows like the Locals and Watch windows. The debugger pauses at the breakpoint you set (IDE highlights the statement in the yellow background). To run your app, press F5 ( Debug > Start Debugging). A breakpoint indicates where Visual Studio should suspend your running code, so you can look at the values of variables or the behavior of memory, or whether or not a branch of code is getting run. With your project open in Visual Studio, open a server-side JavaScript file (such as server.js), click in the gutter to set a breakpoint:īreakpoints are the most basic and essential feature of reliable debugging. Depending on the type of app development you're doing, you may need to install the Node.js development workload with Visual Studio. If you haven't already installed Visual Studio, go to the Visual Studio downloads page to install it for free.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |