set_breakpoint
Halt program execution at a specified address or function to inspect variables and registers during microcontroller debugging.
Instructions
在指定地址或函数名处设置断点。 必须提供 address 或 symbol 之一。
Args: address: 十六进制地址字符串,如 "0x08001234" 或 "0x08001234"。 symbol: 函数名或全局变量名,如 "main"、"HAL_GPIO_WritePin"。 使用符号名需要先调用 load_elf() 加载 ELF 文件。
Returns: 断点设置结果,包含断点地址和句柄。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | ||
| symbol | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |