Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

enableDebugTools

Enabled Angular debug tools that are accessible via your browser's developer console.

See more...

      
      enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>
    
Parameters
ref ComponentRef<T>
Returns

ComponentRef<T>

Description

Usage:

  1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
  2. Type ng. (usually the console will show auto-complete suggestion)
  3. Try the change detection profiler ng.profiler.timeChangeDetection() then hit Enter.