setDebug
setDebug(debug)
setDebug 메소드는 startSession 명령의 디버그 레벨을 정의합니다. true이면, 런타임 서버가 런타임 서버 로그에 디버그 정보를 로그합니다. false이면, 런타임 서버가 디버그 정보를 로그하지 않습니다. 각 세션마다 개별적으로 디버그 플래그가 설정됩니다. 따라서 개별 런타임 세션에 대한 디버그 데이터를 추적할 수 있습니다.
*
debug - 부울(true 또는 false).
리턴 값
없음
다음 예는startSessionsetDebug를 호출하는 executeBatch 메소드에서 발췌한 것입니다.
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);