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

setWriteDbgLevel

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

Function Syntax

void setWriteDbgLevel (unsigned int priority);

Description

This function sets the priority level for the writeDbgLevel CAPL function. The output priority must be set for every network node.

Parameters

  • priority: Priority of current CAPL node for output to the Write Window. Ranges for priority: 0 to 15
    • 0: Only write output with a priority of 0 are shown in the Write Window.
    • 5: Write output with a priority ranging from 0 to 5 are shown.
    • 15: All outputs are shown.

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
writewriteDbgLevel