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 |
no |
Examples
-
debug; log OK— logs "OK" to the console with a "debug" prefix -
debug; abort-on-property-read atob— activates debug mode for theabort-on-property-readsnippet -
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 thejson-pruneorjson-overridesnippets.
For comprehensive debugging information, refer to the debugging snippets section. Each snippet also includes its own debugging guidance within its respective documentation.