LlDebugOutput

Syntax:

void LlDebugOutput (INT nIndent, LPCTSTR pszText);

Task:

Prints the text in the debug window of the Debwin Tool or – depending on the parameter passed to LlSetDebug() - to the log file.

Parameter:

nIndent: Indentation of the following line(s)

pszText: Text to be printed

Hints:

The indentation is very handy for tracing calls to sub-procedures, but you need to make sure that every call with an indentation of +1 is matched by a call with the indentation of -1!

Example:

HLLJOB hJob;

LlSetDebug(LL_DEBUG_CMBTLL);
LlDebugOutput(+1,"Get version number:");
hJob = LlJobOpen(0);
v = LlGetVersion(VERSION_MAJOR);
LlJobClose(hJob);
LlDebugOutput(-1,"...done");

prints the following to the debug screen:

Get version number:
   @LlJobOpen(0)=1
   @LlGetVersion(1)=29
   @LlJobClose(1)
...done

See also:

LlSetDebug, Debwin