![]() Learn more from Debugging a running Node.js application. To start debugging, hold Control+Shift and click the URL link in the information message Debugger listening. ![]() You can also attach the debugger to a running Node.js application from the built-in Terminal ( Alt+F12) or from the Run tool window. Learn more from Debug a Vue.js application, Debug an Angular application, and Debug a React application. Just hold Control+Shift and click the URL at which the application is running. If your application is running in the development mode on localhost, you can start debugging it from the built-in Terminal ( Alt+F12), from the Run tool window, or from the Debug tool window. WebStorm generates a temporary debug configuration and starts a debugging session through it. If your application consists of an HTML file with a reference to JavaScript code and the application is running on the built-in server, just open this HTML file or select it in the Project tool window and then select Debug from the context menu. Select the required configuration from the Select run/debug configuration list on the toolbar and click next to the list. Source maps are required for debugging TypeScript, Dart, CoffeeScript, JavaScript with JSX, ES6 and newer versions etc. If no source map is generated, your breakpoints will not be recognized and processed correctly. This will set the correspondence between lines in your original code and in the generated JavaScript code. To debug code compiled to JavaScript, you need to generate a source map for it. For example, you can pass Node.js-specific command line options to the Node.js executable file. Through a configuration you do not only launch your application but can also tell WebStorm to use some parameters or perform some actions before the application starts. ![]() You can run several debugger sessions with different configurations at a time. The configuration type depends on the type of your application and the runtime environment. Any debugger session is based on a run/debug configuration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |