Debugging

With debug mode and logging enabled, below is an example of the Partytown logs showing all calls, getters and setters:

Partytown Debug Console Logs

The debug config must be true in order to see more verbose logging messages. The config table below lists all of the possible log configurations.

Log Config Property Description
logCalls Log method calls
logGetters Log getter calls
logSetters Log setter calls
logImageRequests Log Image() src requests
logScriptExecution Log script executions
logSendBeaconRequests Log navigator.sendBeacon() requests
logStackTraces Log stack traces

Please see the debug file docs more information about the distribution.