Angular build & debug Chrome Session

Hi,

currently I have two build configurations:

  • start angular server (ng serve)
  • debug js via chrome

Is it possible to create a configuration, that starts the angular server when I start the js debug session?

If I add the angular sever to the “Before launch” list, it never starts the chrome debug session because the angular  server process keeps running.

0
3 comments

The NPM run configuration now has a Browser/Live Edit tab. You can specify your app URL there and enable both the After launch and with JavaScript debugger options - now each time you start your server with the Start angular server configuration, the Chrome debug session will be started automatically.

 

0

Thank you, works perfectly. It also identifies the correct debug configuration (perhaps by the url?) and displays it as debug tab. 

0
I'm pleased to know that it's working for you. Thank you for updating us!
0

Please sign in to leave a comment.