Skip to main content

IAR Embedded Workbench for RL78 5.20

__setDataLogBreak

In this section:
Syntax
__setDataLogBreak(variable, access)
Parameters
variable

A string that defines the variable the breakpoint is set on, a variable of integer type with static storage duration. The microcontroller must also be able to access the variable with a single-instruction memory access, which means that you can only set data log breakpoints on 8 and 16-bit variables.

access

The memory access type: "R", for read, "W" for write, or "RW" for read/write.

Return value

Result

Value

Successful

An unsigned integer uniquely identifying the breakpoint. This value must be used to clear the breakpoint.

Unsuccessful

0

Table 42. __setDataLogBreak return values 


For use with

The C-SPY simulator.

Description

Sets a data log breakpoint, that is, a breakpoint which is triggered when a specified variable is accessed. Note that a data log breakpoint does not stop the execution, it just generates a data log.

Example
__var brk;
brk = __setDataLogBreak("MyVar",
"R");
...
__clearBreak(brk);
See also

Breakpoints and Getting started using data logging.