setDebug
setDebug(debug)
The setDebug method defines the debug level for the startSession command. If true, the runtime server logs debug information to the runtime server log. If false, the runtime server does not log any debug information. The debug flag is set for each session individually. Therefore, you can trace debut data for an individual runtime session.
*
debug-a boolean (true or false).
Return value
None.
Example
The following example is an excerpt from an executeBatch method calling startSession and setDebug.
boolean initialDebugFlag=true;
boolean newDebugFlag=false;
. . .
/* build the startSession command */
Command startSessionCommand = new CommandImpl();
startSessionCommand.setDebug(initialDebugFlag);
. . .

/* build the setDebug command */
Command setDebugCommand = new CommandImpl();
setDebugCommand.setMethodIdentifier(Command.COMMAND_SETDEBUG);
setDebugCommand.setDebug(newDebugFlag);

/** Build command array */
Command[] commands =
{
startSessionCommand,
setDebugCommand,
};
/** Make the call */
BatchResponse batchResponse = api.executeBatch(sessionId, commands);

/** Process the response appropriately */
processExecuteBatchResponse(batchResponse);