设置断点条件
gdb_set_conditionSet or modify a conditional expression on an existing breakpoint. Pass an empty string to clear the condition.
Instructions
为已有断点设置或修改条件表达式。
参数:
breakpointId: 断点编号
condition: 条件表达式,如 x>5, i==10;传空字符串清空条件
示例:
gdb_set_condition({breakpointId: "1", condition: "x>5"}) → 设置条件
gdb_set_condition({breakpointId: "1", condition: ""}) → 清除条件
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | Yes | Conditional expression, empty string to clear condition | |
| breakpointId | Yes | Breakpoint number |