Debugging

Learn how to debug your integration.

Enable debug logging to inspect what the SDK is doing on both the server and the client.

Enable the debug environment variable:

.env
PUBLIC_CROCT_DEBUG=true

With debug enabled, the SDK logs detailed messages to your server logs (for content fetched in loaders and actions) and to the browser console (for client-side tracking and evaluation). Each content and evaluation response also includes the processing region and timing, which helps diagnose latency.

Remember to remove the variable, or disable it, before deploying to production.