You copied the Doc URL to your clipboard.

condition

This command sets a break condition for a specific breakpoint or watchpoint. If the value of a specific expression evaluates to true then the debugger stops the target otherwise execution resumes.

Syntax

condition number [expression]

Where:

number

Specifies the breakpoint or watchpoint number. This is the number assigned by the debugger when it is set. You can use info breakpoints to display the number and status of all breakpoints and watchpoints.

expression

Specifies an expression that is evaluated when the breakpoint or watchpoint is hit. If no expression is specified then the breakpoint or watchpoint condition is deleted.

Example

condition 1 myVar<5       # Set break condition myVar<5 for breakpoint number 1