trace

trace

The trace snippet logs arguments in the document rather than in a content script.

You can use trace for testing and debugging — for example, to verify that snippet injection into a document works without errors.

The trace snippet accepts the same arguments as console.log().

Filter examples

Filter

Result

trace OK

Logs OK to the console.

trace Hello, world!

Logs Hello, world! to the console with two parameters.

Debugging

In debug mode, the string DEBUG precedes each snippet logged by trace.