CAPL Script

WriteDbgLevel

Syntax

long writeDbgLevel(unsigned int priority, char format1[], char format2[], ...);

Function

Outputs a message to the Write Window with the specified priority. This function can be used for debugging to vary the output to the Write Window. This function is especially useful if nodelayer-DLL’s are used. In this case the debug output can be controlled using a global priority parameter. In the simulation tree the priority level can be set for every network node using thesetWriteDbgLevelfunction.

Parameters

priority Output priority from 0 to 15.

format

Format string, variables or expressions legal format expressions:

Return Values

int i = 10;int j = 12;setWriteDbgLevel(7);writeDbgLevel (4, "This is shown: h= %lxh",j);// Output: This is shown: h= 0chwriteDbgLevel (9, "This is not shown: d= %ld",i);// No output

[setWriteDbgLevel](/en/syntax/general/panel/setwritedbglevel) | [write](/en/syntax/general/panel/write) | [writeDbgLevel](/en/syntax/general/panel/writedbglevel)