In AngularJS, we have a function called reloadWithDebugInfo()
angular.reloadWithDebugInfo()
which reload the current application with debug information turned on. One can execute this function in browser console and enable the debugging. I am looking for it's equivalent in Angular 2 which can let us enable debugging in developer console. But it seems like there's no equivalent function of this which can be accessed in the browser console. I know there are functions like enableDebugTools
and disableDebugTools
which let us enable and disable the debugging but one can not access them in browser console. And also to get access to angular2's debugging weapons like ng
& ng.probe
, one has to enable debug tools first as written in the Angular 2 Application Debugging Guide:
Make sure your application has production mode disabled so that you can have access to the all the methods described below.
I just want to know Is there any way to enable debug tool using console in Angular 2?