uv4_debug_session
Launch a headless Keil debug session for an STM32 project, set breakpoints, step through code, and print variable values to identify and fix issues automatically.
Instructions
Run an official Keil debug session via UV4 -d + a generated .ini script.
The debugger runs headless: sets a breakpoint, resets, runs, optionally steps, and prints variable values. Output is captured from the session log.
Args: project: path to .uvprojx target: target name (default first target) ini_path: custom .ini script path (overrides generated script) reset: reset target before running breakpoint: symbol/line to break at ("" = none) steps: extra single-step count after hitting the breakpoint dump_vars: variable names to print (e.g. ["i", "adc_value"]) timeout_seconds: session timeout
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | ||
| steps | No | ||
| target | No | ||
| project | Yes | ||
| ini_path | No | ||
| dump_vars | No | ||
| breakpoint | No | main | |
| timeout_seconds | No |