Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ng start - Unknown option: '--inspect-brk'

I have been trying to debug a Hello World Angular CLI application with IntelliJ 2018, but I am running in some difficulties and cannot find a solution for it. Initially when I ran the option ng start from IntelliJ to Debug, ot returned that it needed the %NODE_DEBUG_OPTION% in the pacjage.json file, so I made this change:

"scripts": {     
    "start": "ng %NODE_DEBUG_OPTION% serve",
}

And ran the Debug again, but now it returns the error Unknown option: '--inspect-brk' and still have not found a solution for it. What exactly I am missing with this configuration?

Thank you.

like image 743
Joe Almore Avatar asked Oct 13 '25 04:10

Joe Almore


1 Answers

Perhaps this will work for you

"start": "node %NODE_DEBUG_OPTION% ./node_modules/@angular/cli/bin/ng serve"
like image 192
yurzui Avatar answered Oct 14 '25 18:10

yurzui