debug

debug

The debug snippet activates debugging functionality for subsequent snippets in a filter's chain.

Parameters

Name

Description

Mandatory

filter

Only print debug logs that match this value. Accepts a plain string or a regex (wrapped in / characters). Useful on complicated websites with many active filters where logs can get spammy and useful logs get buried.

no

Examples

  • debug; log OK — logs "OK" to the console with a "debug" prefix

  • debug; abort-on-property-read atob — activates debug mode for the abort-on-property-read snippet

  • debug hello; snippet-name— Only prints debug logs that contain the word hello.

  • `debug /json-prune\|json-override/; snippet-name— Only prints logs coming from the json-prune or json-override snippets.

For comprehensive debugging information, refer to the debugging snippets section. Each snippet also includes its own debugging guidance within its respective documentation.