Ignore List
Settings > Ignore List lets you configure the list of scripts the debugger ignores.
To enable or disable all ignore listing for the debugger:
- Open Settings.
- In the Ignore List tab, check or clear Settings > Enable Ignore Listing. This is the main switch for all ignore-listing capabilities.
With ignore-listing enabled, you can further customize the list of scripts to ignore.
Ignore Chrome Extensions scripts
When using the Sources panel of Chrome DevTools to step through code, sometimes you pause on code that you don't recognize. You're probably paused on the code of one of the Chrome Extensions that you've installed.
In Settings > Ignore List, enable two checkboxes:
- Enable Ignore Listing
- Add content scripts to ignore list.
Ignore known third-party scripts
To make the debugger skip known third-party scripts, check Settings > Ignore List > Automatically add known third-party scripts to ignore list.
DevTools adds third-party scripts to the ignore list based on the x_google_ignoreList
property in source maps. Frameworks and bundlers need to supply this information.
As of Chrome version 106, Angular v14.1.0 supports this feature. See Case Study: Better Angular Debugging with DevTools.
Ignore a custom list of scripts
To ignore a single script or a custom pattern of scripts:
- Check Settings > Ignore List > Enable Ignore Listing.
- In the Custom exclusion rules section, click Add pattern.
- Specify the script name or a RegEx pattern of script names to ignore.
- Click Add to save changes.
Manage a custom list of ignored scripts
To enable or disable ignoring of a specific script or pattern of script names, in Settings > Ignore List > Custom exclusion rules, check or clear the checkbox next to the script or pattern.
To edit or remove a script or a pattern of script names, click or buttons that appear on hover.