
When the app is compiled and the Webpack dev server is ready, the Run tool window shows that the app is running in the browser at Note that when the dev server is running, the app will automatically reload if you change any of the source files. In either case, WebStorm launches the predefined Angular CLI Server run/debug configuration. Select the Run Angular CLI Server run/debug configuration from the list on the toolbar and click the Run button next to the list. Open your package.json file, click the Run Script gutter icon next to the start script, and select Run Angular CLI Server from the list. Open the built-in Terminal and type npm run start.ĭouble-click the start task in the npm tool window. To set a line breakpoint, click the gutter next to the executable line of code where you want the application to suspend.

WebStorm recognizes line breakpoints, exception breakpoints, and conditional breakpoints. You do not need to define any run/debug configurations yourself, as WebStorm has already created two default ones for you:Īngular CLI Server to launch your app in the development mode. Learn more from Creating a new Angular application. When you click Create, WebStorm downloads and runs Angular CLI, which generates an app with an Angular-specific structure, and downloads all the required dependencies. Select File | New Project from the main menu, then, in the New Project dialog, select Angular CLI as the project type, and specify the application name (blogAngular) and parent folder for it (WS). With WebStorm, you don’t have to download Angular CLI in advance – during project generation the IDE downloads and runs it using npx. The same principles apply to our other IDEs, including IntelliJ IDEA, PhpStorm, and P圜harm. If you have never used the JavaScript debugger in WebStorm before, we recommend watching this video first to learn how to get started.

