Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » writeDbgLevel

writeDbgLevel

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

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

Description

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 the setWriteDbgLevel function.

Parameters

  • priority: Output priority from 0 to 15.
  • format: Format string, variables or expressions

Return Values

Example

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