Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Augury doesn't work when angular's mode is dev

Tags:

angular

I want to use Augury to debug my angular project, and I have used isDevMode to make sure that the mode is dev, but it doesn't work.

The Augury hint that

This application is running in production mode and therefore cannot be inspected using Augury. If this is an Angular application, please rebuild your application in debug mode or remove the call to enableProdMode().

The project isn't created by angular cli, and Augury can work well with the project created by angular cli in my browser. What is going wrong?

like image 443
chenluyan Avatar asked Sep 29 '17 07:09

chenluyan


1 Answers

I have solved the problem by setting the debug flag to true in tsconfig.json, see in https://github.com/rangle/augury

"angularCompilerOptions": { "debug": true }

like image 184
chenluyan Avatar answered Oct 09 '22 11:10

chenluyan