[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/platform-browser/enableDebugTools [Back]  [Original]

enableDebugTools Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/platform-browser

enableDebugTools

function
stable

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

On this page

    arrow_upward_alt Back to the top

    API

    function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>;
    @paramrefComponentRef<T>
    @returnsComponentRef<T>

    Description

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

    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.
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page