setDebug

The setDebug method enables you to set the logging verbosity level for all code paths for the session.

function callSetDebug(commandsToExecute, callback) {

        var ssId = document.getElementById('sd_sessionId').value;
        var isDebug = document.getElementById('isDebug').value;
        
        InteractAPI.setDebug(ssId, isDebug, callback);

}
  • sessionID-a string which identifies the session ID.
  • debug-a boolean which enables or disables debug information. Valid values are true or false. If true, Unica Interact logs debug information to the runtime server log.
  • callback - If the method was successful, the callback function calls onSuccess. If the method failed, the callback function calls onError.

Return value

The runtime server responds to setDebug with a Response object with the following attributes populated:

  • AdvisoryMessages
  • ApiVersion
  • OfferList
  • Profile
  • SessionID
  • StatusCode