enableDebugTools
Enabled Angular debug tools that are accessible via your browser's developer console.
API
function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
@returns
ComponentRef<T>
Description
Enabled Angular debug tools that are accessible via your browser's developer console.
Usage:
- Open developer console (e.g. in Chrome Ctrl + Shift + j)
- Type
ng.(usually the console will show auto-complete suggestion) - Try the change detection profiler
ng.profiler.timeChangeDetection()then hit Enter.
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/platform-browser/enableDebugTools