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.

Code Sample

// setDebug Method

Using the Method Call

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 to check for error messages.