---
title: setDebug
slug: js-api/setdebug
description: Overview of the Monetate JavaScript API setDebug method and how to use it
image:  https://archbee-image-uploads.s3.amazonaws.com/ceIfEvQHzQk1IVxoRWUh7/K9eTL4jKm7UQINb6zNziJ-20250912-181225.png
docTags: 
createdAt: 2024-04-30T18:24:09.331Z
---

:::CodeblockTabs
setDebug Method

```javascript
// setDebug Method
window.monetateQ.setDebug();
```
:::

The `setDebug` method is used to enable debugging for the Monetate JavaScript API. Calling this method sets a cookie on your computer and reloads the current page.

To test a page with this method, first place the call in the console and then hit Enter. The page reloading indicates that the call is set up. Next, launch the [Monetate Inspector browser plug-in](https://docs.monetate.com/docs/install-the-monetate-inspector-browser-plug-in) to check for error messages.
