DebugForge
DebugForge lets AI agents control Lauterbach TRACE32 debuggers to inspect, debug, and automate embedded target workflows.
Connect/disconnect to local or remote TRACE32 (WinRM/SSH) and manage debug sessions.
Control execution: go, step, halt, reset, run to address/line, get state, call stack, source location, current function, run stats.
Manage breakpoints: set/list/delete/toggle, plus conditional, data, count, task, action, and temporary breakpoints.
Inspect and modify target state: read/write memory (cached/physical), registers, variables, symbols, structs, arrays, and disassembly/source listings.
Execute arbitrary TRACE32 commands, PRACTICE scripts, evaluate expressions, and retrieve TRACE32 window contents.
Debug multicore AURIX devices: select/sync cores, configure multicore, get chip info, detect CPU, all-core state.
Use on-chip trace (MCDS) and BMC profiling: trace start/stop/list/clear, triggers, data trace, profile charts, cache analysis.
Configure system options: reset behavior, cache-aware reads, peripheral suspend, standby mode, load symbols.
Automate project workflow: build, clean, flash and run, build-flash-run, analyze MAP/ELF, disassemble project ELF.
Access debug skills knowledge base: list, get, search, and save reusable debugging skills.
Integrates with GitHub Copilot to perform TRACE32 debugging via MCP, allowing AI-driven hardware debugging.
Allows Hermes agents to connect to TRACE32 for autonomous debugging tasks via MCP.
Enables Codex CLI (OpenAI) to access and control a TRACE32 debugger for autonomous hardware debugging.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DebugForge Set a breakpoint at main and read the call stack"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Highlights
47 MCP Tools — Full TRACE32 access for AI agents: execution control, breakpoints, memory, registers, variables, symbols, and more
Autonomous Debugging — AI agents can independently connect to your target, reproduce issues, locate root causes, and suggest fixes
Local + Remote — Debug locally or connect to a remote Windows TRACE32 via WinRM/SSH with full file transfer support
Project-Aware — Configure once via
debugforge.toml, your AI agent automatically knows your ELF paths, flash scripts, and TRACE32 setupReal Hardware — Battle-tested on TC397 TriCore via USB. Your AI agent controls actual silicon, not a simulator
Advanced Breakpoints — Conditional, data watchpoints, hit-count, task-specific, action triggers, and temporary breakpoints
Deep Inspection — AI agents can read call stacks with locals, expand structs, view disassembly, inspect peripherals
Any MCP Agent — Works with Claude Code, Codex CLI, Qwen, or any MCP-compatible AI assistant
Zero Lock-in — MIT licensed, open source, no vendor dependencies beyond TRACE32 itself
Related MCP server: gdb_mcp
Architecture
┌─────────────────┐ MCP (stdio) ┌──────────────┐ PYRCL/TCP ┌──────────────┐
│ │◄───────────────────────────►│ │◄─────────────────────►│ │
│ AI Agent │ JSON-RPC tool calls │ DebugForge │ Remote Control API │ TRACE32 │
│ (Claude Code, │ (47 debugging tools) │ MCP Server │ (lauterbach-trace32 │ PowerView │
│ Codex, etc.) │ │ │ -rcl) │ │
│ │◄───────────────────────────►│ │◄─────────────────────►│ │
└─────────────────┘ Results └──────────────┘ Hardware └──────┬───────┘
│
┌──────▼───────┐
│ Target MCU │
│ (e.g. TC397) │
└──────────────┘Remote Mode
┌─────────────────────────────────────────────────────────────┐
│ Local Linux (Agent) │
│ - Source/ELF/CMM files │
│ - AI Agent (DebugForge MCP Server) │
└────────────────┬────────────────────────┬───────────────────┘
│ SCP/WinRM │ PYRCL (port 20000)
│ File transfer │ Remote control
▼ ▼
┌─────────────────────────────────────────────────────────────┐
│ Remote Windows │
│ - TRACE32 PowerView │
│ - Hardware target (TC38x/TC39x) │
└─────────────────────────────────────────────────────────────┘Quick Start
# 1. Install DebugForge
pip install debugforge
# 2. Install TRACE32 Python package (from your TRACE32 installation)
pip install <YOUR_T32_PATH>/demo/api/python/rcl/dist/lauterbach_trace32_rcl-*.whl
# 3. Add to your AI agent's MCP config (e.g. .claude/settings.json){
"mcpServers": {
"debugforge": {
"command": "debugforge"
}
}
}# 4. Configure your project
cp debugforge.toml.example debugforge.toml
# Edit debugforge.toml with your paths and connection settings
# 5. Start TRACE32 with API port enabled, then ask your AI agent:
# "Connect to TRACE32, load the firmware, find why the system crashes at boot"Installation
Prerequisites
Requirement | Details |
Python | 3.10 or higher |
TRACE32 | PowerView running with Remote API enabled |
PYRCL |
|
Step 1: Install DebugForge
pip install debugforgeOr install from source:
git clone https://github.com/YangPan2020/debugforge.git
cd debugforge
pip install -e .Step 2: Install TRACE32 Python Library
The PYRCL wheel is bundled with your TRACE32 installation:
pip install <T32_INSTALL_PATH>/demo/api/python/rcl/dist/lauterbach_trace32_rcl-*.whlStep 3: Enable TRACE32 Remote API
Add these lines to your TRACE32 configuration file (.t32 or config.t32):
RCL=NETTCP
PORT=20000Then restart TRACE32 PowerView.
Configuration
Project Configuration (debugforge.toml)
Create a debugforge.toml in your project root. A complete template is provided:
cp debugforge.toml.example debugforge.toml[mode]
mode = "local" # "local" or "remote"
[connection]
node = "localhost"
port = 20000
protocol = "TCP"
auto_connect = true
[remote]
host = "192.168.1.100"
winrm_port = 5985
winrm_user = "user@domain.local"
winrm_password = "your_password"
ssh_user = "username"
staging_dir = "D:\\T32\\debugforge"
[project]
elf = "output/build/firmware.elf"
[scripts]
flash = "tools/Trace32/flash.cmm"Note:
debugforge.tomlcontains credentials and is gitignored. Never commit it.
MCP Client Setup
Add to .claude/settings.json:
{
"mcpServers": {
"debugforge": {
"command": "debugforge"
}
}
}{
"mcpServers": {
"debugforge": {
"command": "debugforge",
"env": {
"T32_AUTO_CONNECT": "true",
"T32_PORT": "20000"
}
}
}
}Any MCP-compatible client can use DebugForge. Configure the command as debugforge with stdio transport.
Environment Variables
Environment variables override debugforge.toml values (highest priority):
Variable | Default | Description |
| — | TRACE32 installation directory |
|
| TRACE32 host address |
|
| TRACE32 API port |
|
| Communication protocol (TCP/UDP) |
|
| Auto-connect on server start |
|
| Path to config file |
Available Tools
Connection & Configuration
Tool | Description |
| Connect to a TRACE32 PowerView instance |
| Disconnect the API client but leave TRACE32 running |
| Finish debugging, send |
| Get connection status, TRACE32 version, and system state |
| Get the loaded project configuration (paths, scripts, settings) |
Execution Control
Tool | Description |
| Start/continue program execution |
| Single-step execution (into, over, or out) |
| Stop program execution |
| Reset the target CPU |
| Get current CPU execution state |
| Get current source file and line |
| Get name of currently executing function |
| Combined run/halt statistics |
Breakpoints
Tool | Description |
| Set a program/read/write/readwrite breakpoint |
| List all active breakpoints |
| Delete a breakpoint |
| Delete all breakpoints at once |
| Enable/disable a breakpoint without deleting |
Advanced Breakpoints
Tool | Description |
| Breakpoint with HLL condition (e.g., |
| Trigger on memory access with optional value match |
| Stop after N-th hit (loop debugging) |
| Trigger only for a specific OS task/thread |
| Execute a TRACE32 command on hit |
| Auto-deletes after first hit |
Memory
Tool | Description |
| Read target memory (hex dump format) |
| Write data to target memory |
| Read through CPU data cache |
| Read bypassing cache |
Registers
Tool | Description |
| Read a single CPU register |
| Read multiple registers at once |
| Write a value to a CPU register |
Variables
Tool | Description |
| Read a C/C++ variable by symbol name |
| Write a value to a C/C++ variable |
| View a variable/struct/array with full expansion |
Symbols
Tool | Description |
| Look up symbol address by name |
| Look up symbol name by address |
Commands & Scripting
Tool | Description |
| Execute any TRACE32 PRACTICE command |
| Run a PRACTICE (.cmm) script with timeout |
| Evaluate a TRACE32 expression or function |
Debug Views
Tool | Description |
| Get call stack with function names |
| Get call stack with all local variables per frame |
| Formatted memory dump (hex + ASCII) |
| Full register view with all flags |
| Get text content of any TRACE32 window command |
Multicore
Tool | Description |
| Switch debugger focus to a specific core |
| Get chip stepping and configuration |
| Get execution state of all cores |
| Synchronized Go/Break/Step across cores |
On-chip Trace (MCDS)
Tool | Description |
| Configure and start trace recording |
| Stop trace recording |
| Display trace buffer contents |
| Clear trace buffer |
| Set trace start/stop triggers |
System Configuration
Tool | Description |
| Configure reset handling |
| Enable/disable cache-aware reads |
| Suspend peripherals on halt |
| Load ELF debug symbols |
| Get all system option settings |
Usage Examples
Basic Debug Session
You: "Connect to TRACE32 and help me find why the system crashes after boot"
AI Agent workflow:
1. get_project_config() → learns your ELF path and scripts
2. connect() → connects to TRACE32
3. run_practice("flash.cmm") → flashes firmware
4. set_breakpoint("main")
5. go() → runs to main
6. step("over") → steps through code
7. get_callstack() → analyzes the call stack
8. read_variable("error_code") → checks variables
9. shutdown_trace32() → exits PowerView and releases the probe
→ "Found it: error_code = -1 because init_hardware() fails at line 84"Always call shutdown_trace32() when the debug task is complete or before
handing control back for manual flashing. disconnect() only detaches the API
client and intentionally leaves TRACE32 PowerView running.
Remote Debug Session
You: "Connect to the remote TRACE32 on Windows and debug the TC397 board"
AI Agent workflow:
1. get_project_config() → detects remote mode, gets WinRM credentials
2. connect(node="192.168.1.100") → connects via PYRCL over network
3. run_practice("tc39x_flash.cmm") → flashes via remote TRACE32
4. go() → halt() → get_callstack()
→ Debugging the remote target as if it were localSupported AI Agents
Agent | Status | Configuration |
✅ Tested |
| |
✅ Tested | MCP stdio transport | |
✅ Tested | MCP stdio transport | |
✅ Compatible | MCP stdio transport | |
✅ Compatible | MCP stdio transport | |
✅ Compatible | MCP stdio transport | |
Any MCP Client | ✅ Compatible | Standard MCP protocol |
File Structure
debugforge/
├── src/debugforge/ # MCP Server core
│ ├── server.py # FastMCP server entry
│ ├── config.py # Configuration (local + remote)
│ ├── state.py # Connection state management
│ └── tools/ # Tool implementations (47 tools)
├── examples/ # Example scripts
│ ├── remote_debug.py # Remote debug via WinRM + PYRCL
│ ├── remote_debug_tc38x.py
│ ├── test_all_tools.py # Full tool verification
│ └── debug_tc397_live.py # TC397 complete workflow
├── debugforge.toml.example # Configuration template
├── WINDOWS_SSH_SETUP.md # Remote Windows setup guide
└── README.mdDevelopment
Setup
git clone https://github.com/YangPan2020/debugforge.git
cd debugforge
pip install -e ".[dev]"Run Tests
pytest tests/ -vCode Style
ruff check src/ tests/
ruff format src/ tests/License
MIT — free for personal and commercial use.
Available Tools
112 toolsabort_practiceA
Abort the currently running PRACTICE script.
Stops the active .cmm script execution immediately.
Returns: Confirmation
Inputs: no named parameters. Returns: result
analyze_elfA
Analyze the project ELF file structure.
Uses readelf to inspect ELF headers, sections, or symbols.
Args: detail: What to show — "headers", "sections", "symbols", or "size" (default: headers)
Returns: ELF analysis output
Inputs: detail. Returns: result
analyze_mapB
Analyze the project MAP file to understand memory layout.
Shows memory section sizes, symbol addresses, or searches for a specific symbol.
Args: section: Filter by section name (e.g., ".text", ".bss", ".data"). Empty for overview. symbol: Search for a specific symbol in the MAP file.
Returns: MAP file analysis (memory layout, section sizes, or symbol info)
Inputs: symbol, section. Returns: result
bmc_cache_analysisA
Run a quick cache performance analysis.
Configures counters for cache hit/miss ratio, runs the target briefly, then reports the results. Useful for identifying cache bottlenecks.
Args: function: Function to analyze (empty = current execution point) run_duration_ms: How long to run in milliseconds (default: 1000)
Returns: Cache hit/miss statistics
Inputs: function, run_duration_ms. Returns: result
bmc_configureA
Configure a BenchMark Counter to count a specific hardware event.
Maps a performance event to a counter slot. The counter accumulates while the target runs. Read with bmc_read() after halting.
Args: counter: Counter slot — "M1CNT", "M2CNT", "M3CNT", "M4CNT", etc. event: Hardware event to count. Common TriCore events: "CYCLECOUNT" — CPU clock cycles "INSTRUCTIONCOUNT" — instructions executed "DATA_X_HIT" — data cache/buffer hits "DATA_X_CLEAN" — data cache/buffer misses "DATA_READ" — data read accesses "DATA_WRITE" — data write accesses "PROGRAM_X_HIT" — instruction cache hits "PROGRAM_X_MISS" — instruction cache misses "JUMP" — jump/branch instructions "BRANCH_PREDICTED" — correctly predicted branches "BRANCH_NOT_PREDICTED" — mispredicted branches
Returns: Confirmation of counter configuration
Inputs: event (required), counter (required). Returns: result
bmc_profile_chartA
Display a BMC profile chart with counter data mapped to instruction flow.
Shows which functions/addresses consumed the most events (cycles, cache misses, etc.). Requires BMC counters to have been recorded during execution.
Args: counters: Counter names to include (e.g., ["M1CNT", "M2CNT"]). Empty = all configured counters.
Returns: Profile chart showing event distribution across code
Inputs: counters. Returns: result
bmc_readA
Read current BenchMark Counter values.
Target must be halted. Returns raw counter values since last reset.
Args: counters: List of counter names to read (e.g., ["M1CNT", "M2CNT"]). If empty/None, reads all available counters.
Returns: Counter names and their current values
Inputs: counters. Returns: result
bmc_resetA
Reset all BenchMark Counters to zero.
Clears all counter values for a fresh measurement.
Returns: Confirmation
Inputs: no named parameters. Returns: result
bmc_set_atobA
Enable or disable A-to-B mode on a BMC counter.
In A-to-B mode, the counter only counts events between the Alpha and Bravo marker breakpoints. Use set_breakpoint with actions "alpha"/"bravo" to set markers.
Args: counter: Counter name (e.g., "M1CNT") enabled: True to enable A-to-B mode, False to disable
Returns: Confirmation
Inputs: counter (required), enabled. Returns: result
build_flash_runA
Full cycle: build the project, flash firmware, and run to breakpoint.
Composite operation:
Build the project (compile)
Flash the firmware to target
Reset and run to the specified breakpoint
This is the core "edit-compile-debug" loop tool.
Args: break_at: Symbol to break at after flashing (default: "main")
Returns: Step-by-step results for the entire build-flash-run cycle
Inputs: break_at. Returns: result
build_projectA
Build the project using the configured build command.
Executes the build command defined in debugforge.toml [build] section. Returns the build output including any errors or warnings.
Returns: Build output (stdout + stderr) with success/failure status
Inputs: no named parameters. Returns: result
clean_projectA
Clean the project build artifacts using the configured clean command.
Returns: Clean output with success/failure status
Inputs: no named parameters. Returns: result
clear_all_breakpointsA
Delete all breakpoints at once.
Use this to clean up all breakpoints and let the program run freely.
Returns: Confirmation that all breakpoints were cleared
Inputs: no named parameters. Returns: result
clear_messageA
Clear the TRACE32 message line.
Removes any displayed message from the status bar.
Returns: Confirmation
Inputs: no named parameters. Returns: result
configure_multicoreA
Configure multicore topology for AURIX devices.
Mounts multiple cores into one chip for shared resources (trace, MCDS). Must be called before SYStem.Up in multicore scenarios.
Based on SYStem.CONFIG.CORE command from debugger_tricore.pdf: SYStem.CONFIG.CORE maps each core to a chip position.
Args: core_count: Number of cores to configure (e.g., 6 for TC397, 3 for TC377)
Returns: Configuration results per core
Inputs: core_count (required). Returns: result
connectA
Connect to a running TRACE32 PowerView instance.
Args: node: TRACE32 host address (default from config or 'localhost') port: TRACE32 API port (default from config or 20000) protocol: Communication protocol - TCP or UDP (default from config or 'TCP')
Returns: Connection status message with TRACE32 version info
Inputs: node, port, protocol. Returns: result
data_setB
Write a value directly to a memory address using Data.Set.
Args: address: Memory address (e.g., "D:0xF0036250", "0x80000000") value: Value to write (e.g., "0x00000008", "0xFF") width: Data width — "byte", "word" (16-bit), "long" (32-bit), "quad" (64-bit)
Returns: Confirmation of write
Inputs: value (required), address (required), width. Returns: result
delete_breakpointB
Delete a breakpoint at the specified address or symbol.
Args: address: Address or symbol name of the breakpoint to delete
Returns: Confirmation of deletion
Inputs: address (required). Returns: result
detect_cpuA
Auto-detect the connected AURIX device.
Uses SYStem.DETECT.CPU to identify the connected chip automatically. Works with TC27x, TC37x, TC39x and other AURIX families.
Returns: Detected CPU type and stepping
Inputs: no named parameters. Returns: result
disassembleA
Disassemble a function or address range from the project ELF file.
Uses the configured objdump tool to produce disassembly output.
Args: symbol: Function name to disassemble (e.g., "main", "ISR_Handler") address: Start address in hex (e.g., "0x80001000"). Used if symbol is empty. lines: Maximum number of lines to return (default: 50)
Returns: Disassembly listing
Inputs: lines, symbol, address. Returns: result
disconnectA
Disconnect from TRACE32 PowerView.
Returns: Disconnection confirmation message
Inputs: no named parameters. Returns: result
enable_event_notificationsC
Enable event notifications for debugger state changes.
When enabled, TRACE32 can send notifications to external tools or scripts when specific events occur (e.g., target halts, breakpoints hit).
Args: events: List of event types to monitor: "break" — target halted "go" — target running "reset" — system reset detected "power" — power cycle detected Default: ["break", "go"]
Returns: Confirmation of enabled events
Inputs: events. Returns: result
evaluateA
Evaluate a TRACE32 PRACTICE function or expression.
Useful for querying system state, hardware info, or computing values. Examples: "SOFTWARE.VERSION()", "REGISTER(PC)", "sYmbol.BEGIN(main)"
Args: expression: TRACE32 PRACTICE function or expression to evaluate
Returns: Evaluation result as a string
Inputs: expression (required). Returns: result
execute_commandB
Execute any TRACE32 PRACTICE command string.
This is the most flexible tool — any command you can type in the TRACE32 command line can be executed here (e.g., "SYStem.Up", "Data.LOAD.Elf ...", "Break.Set main", "Var.View myVar").
Args: command: TRACE32 command string to execute
Returns: Success confirmation or error message from TRACE32
Inputs: command (required). Returns: result
flash_and_runA
Flash firmware to target and run to a breakpoint (default: main).
Composite operation:
Execute the configured flash script (downloads firmware)
Reset the target
Set a breakpoint at the specified symbol
Run to that breakpoint
Args: break_at: Symbol to break at after flashing (default: "main"). Set empty to skip.
Returns: Step-by-step execution results
Inputs: break_at. Returns: result
get_all_cores_stateA
Get the execution state of all CPU cores.
Queries each core's running/stopped status and PC value. Useful in multicore debugging to understand the global system state.
Returns: Table showing state of each core
Inputs: no named parameters. Returns: result
get_breakpoint_countA
Get the total number of breakpoints currently set.
Returns: Count of all breakpoints (enabled and disabled)
Inputs: no named parameters. Returns: result
get_callstackA
Get the current call stack (backtrace) with function names and arguments.
The target must be halted. Shows the complete call chain from the current function up to the entry point, including function arguments and source context.
Returns: Formatted call stack with frame numbers, function names, and arguments
Inputs: no named parameters. Returns: result
get_chip_infoA
Get the detected chip/device information.
Returns chip stepping, device variant, and CPU configuration. Useful for verifying the correct CPU is selected.
Returns: Chip stepping, CPU type, and stepping information
Inputs: no named parameters. Returns: result
get_current_functionA
Get the name of the function the CPU is currently executing.
Returns: Function name (or address if no debug symbols)
Inputs: no named parameters. Returns: result
get_data_dumpA
Get a formatted memory dump (hex + ASCII) from the target.
Similar to TRACE32's Data.dump window. Shows memory contents in the standard hex dump format with address, hex values, and ASCII representation.
Args: address: Start address (e.g., "0xD0000000", "D:0x80000000") length: Number of bytes to dump (default: 256) width: Access width in bits — 8, 16, 32, or 64 (default: 32)
Returns: Formatted hex dump with addresses, hex values, and ASCII
Inputs: address (required), width, length. Returns: result
get_debug_skillA
Get the full content of a specific debug skill.
Args: name: Skill name or filename (e.g., "stack-overflow" or "stack-overflow.md")
Returns: Full skill content including symptoms, debug strategy, root causes, and fix patterns
Inputs: name (required). Returns: result
get_disassemblyA
Get disassembly listing at an address (or current PC if not specified).
Shows mixed source and assembly code for understanding what the CPU is executing.
Args: address: Start address or symbol. Empty = current PC. lines: Approximate number of lines to return (default: 30)
Returns: Disassembly listing with source code interleaved
Inputs: lines, address. Returns: result
get_localsA
Get the call stack with all local variables for each frame.
The target must be halted. Shows local variable names and values for every function in the call stack. Useful for understanding program state at the point of a breakpoint or crash.
Returns: Call stack with local variables expanded per frame
Inputs: no named parameters. Returns: result
get_message_lineA
Read the current TRACE32 message line content.
The message line is the status bar at the bottom of the TRACE32 window that displays status messages from commands and scripts.
Returns: Current message line text
Inputs: no named parameters. Returns: result
get_peripheral_viewA
View peripheral register contents.
Args: peripheral: Peripheral name or address. Empty = open general view.
Returns: Peripheral register values
Inputs: peripheral. Returns: result
get_practice_stateA
Get the state of any running PRACTICE (.cmm) script.
Shows whether a PRACTICE script is active, which script is running, and the current line being executed.
Returns: PRACTICE script state
Inputs: no named parameters. Returns: result
get_project_configA
Get the current DebugForge project configuration.
Returns project-specific paths (ELF, MAP, scripts) and TRACE32 settings loaded from debugforge.toml and environment variables. Call this at the start of a debug session to learn about the project context.
Returns: Formatted project configuration including paths and connection settings
Inputs: no named parameters. Returns: result
get_register_viewA
Get the full register view with all CPU registers and flags.
Shows all registers organized by type (data, address, system) with flags decoded. More comprehensive than read_register/read_registers.
Returns: Complete formatted register dump including flags and special registers
Inputs: no named parameters. Returns: result
get_run_statsA
Get quick run/halt statistics for the target.
Combines CPU state, current function, source location, and elapsed runtime (if available) in one call.
Returns: Aggregated run statistics
Inputs: no named parameters. Returns: result
get_source_listingA
Get the source code listing around the current execution point.
Shows HLL (C/C++) source with line numbers. The target must be halted.
Args: address: Address or symbol. Empty = current PC.
Returns: Source code listing
Inputs: address. Returns: result
get_source_locationA
Get the current source file and line of the halted CPU.
Returns the HLL source location (file:line) and enclosing function name for the current PC. The target must be halted and symbols must be loaded.
Returns: Formatted source location (file, line, function, module)
Inputs: no named parameters. Returns: result
get_stateA
Get the current CPU/target execution state.
Returns: Current state: running, stopped, power-down, or other system state
Inputs: no named parameters. Returns: result
get_system_optionsA
Get the current system options and configuration.
Shows all active SYStem.Option settings including PERSTOP, DCREAD, reset behavior, and other debug options.
Returns: Formatted system options
Inputs: no named parameters. Returns: result
get_task_listA
Get the list of OS tasks/threads (requires OS-awareness configured).
Returns: Task list with names, IDs, states, and priorities
Inputs: no named parameters. Returns: result
get_task_stackB
Get stack information for OS tasks.
Args: task: Task name or ID. Empty = all tasks.
Returns: Task stack usage information
Inputs: task. Returns: result
get_windowA
Get the text content of any TRACE32 window command.
This is the most flexible view tool — any TRACE32 command that produces a window can have its content retrieved. Use this for specialized views not covered by other tools.
Examples: - "Data.List" — disassembly listing - "Var.Watch" — variable watch window - "Frame.view /Locals /ALL" — all frames with locals - "Trace.List" — trace buffer contents - "TASK.List" — OS task/thread list
Args: command: TRACE32 window command (e.g., "Data.List", "Var.Watch")
Returns: Formatted text content of the specified window
Inputs: command (required). Returns: result
goA
Start or continue program execution on the target.
Returns: Confirmation that execution was started
Inputs: no named parameters. Returns: result
go_returnA
Run to the last instruction of the current function (before return).
Unlike go_up, this stops INSIDE the current function at its return point.
Returns: State at function return point
Inputs: no named parameters. Returns: result
go_tillA
Run until a specific address is reached (temporary breakpoint).
Args: address: Target address or symbol to run to (e.g., "main", "0x80001000")
Returns: State after reaching the address (or timeout info)
Inputs: address (required). Returns: result
go_upA
Run until the current function returns to its caller (step out).
Returns: State after returning to caller
Inputs: no named parameters. Returns: result
haltA
Stop (break) program execution on the target.
Returns: CPU state after halting
Inputs: no named parameters. Returns: result
list_access_classesA
List all available memory access classes for TRACE32.
Shows the different access class prefixes that can be used to read memory through different paths (cache, bus, peripheral, etc.).
Returns: Table of access classes with descriptions
Inputs: no named parameters. Returns: result
list_breakpointsA
List all active breakpoints.
Returns: Table of all breakpoints with address, type, and state
Inputs: no named parameters. Returns: result
list_debug_skillsA
List all available debug skills in the project knowledge base.
Returns skill names, categories, and brief descriptions from the configured skills directory.
Returns: Formatted list of available debug skills
Inputs: no named parameters. Returns: result
load_symbol_fileA
Load debug symbols from an ELF file.
Loads symbol and debug information for source-level debugging. If no path given, uses the configured ELF path from debugforge.toml.
Args: elf_path: Path to ELF file. Empty = use configured path.
Returns: Confirmation of symbol loading
Inputs: elf_path. Returns: result
read_memoryB
Read memory from the target at a given address.
Args: address: Memory address as hex string (e.g., "0x80000000") or symbol name (e.g., "main") length: Number of bytes to read width: Access width in bits — 8, 16, 32, or 64 (default: 32) access: Access class prefix (e.g., "D:" for data, "P:" for program). Empty = default.
Returns: Hex dump of memory contents
Inputs: length (required), address (required), width, access. Returns: result
read_memory_cachedA
Read memory using cache-aware access (D: prefix).
Shows data as the CPU sees it through its data cache, not the stale value on the bus. Essential for debugging code that modifies cached memory (e.g., shared variables in LMU on TC39x).
Args: address: Memory address as hex string (e.g., "0x80000000") length: Number of bytes to read width: Access width in bits — 8, 16, 32, or 64 (default: 32)
Returns: Hex dump of cached memory contents
Inputs: length (required), address (required), width. Returns: result
read_memory_physicalA
Read physical memory bypassing the CPU cache.
Reads the actual value on the memory bus, which may differ from what the CPU sees if the data cache has not been flushed.
Args: address: Memory address as hex string (e.g., "0x80000000") length: Number of bytes to read width: Access width in bits — 8, 16, 32, or 64 (default: 32)
Returns: Hex dump of physical memory contents
Inputs: length (required), address (required), width. Returns: result
read_registerA
Read a single CPU register by name.
Args: name: Register name (e.g., "PC", "SP", "R0", "D0", "A0")
Returns: Register name and its current value
Inputs: name (required). Returns: result
read_registersA
Read multiple CPU registers.
Args: names: List of register names to read. If empty/None, reads all registers. core: Filter by core/unit (e.g., "CPU", "FPU"). Empty = all.
Returns: Table of register names and values
Inputs: core, names. Returns: result
read_variableA
Read a C/C++ variable from the target by its symbol name.
The target must be halted (stopped) for variable reads to work.
Args: name: Variable name as it appears in source code (e.g., "counter", "myStruct.field")
Returns: Variable name and its current value
Inputs: name (required). Returns: result
resetA
Reset the target CPU.
Returns: Confirmation of reset
Inputs: no named parameters. Returns: result
run_cmm_scriptC
Execute a TRACE32 PRACTICE (.cmm) script file.
Args: script_path: Path to the .cmm script file timeout: Maximum execution time in seconds (default: 30)
Returns: Script execution result
Inputs: script_path (required), timeout. Returns: result
run_practiceA
Run a PRACTICE (.cmm) script and wait for it to complete.
Args: script: Path to the .cmm script file (absolute or relative to TRACE32) timeout: Maximum time to wait for script completion in seconds (default: 60)
Returns: Script execution result (success or error message)
Inputs: script (required), timeout. Returns: result
run_to_lineA
Run until execution reaches a specific source file line.
Sets a temporary breakpoint at the given source location and resumes execution. The target stops when that line is reached.
Args: file: Source file name (can be partial, e.g., 'main.c' or full path) line: Line number in the source file
Returns: Confirmation of temporary breakpoint
Inputs: file (required), line (required). Returns: result
save_debug_skillA
Save a new debug skill to the knowledge base.
Call this after successfully debugging a new type of issue to capture the experience for future reuse.
Args: name: Short kebab-case name (e.g., "dma-transfer-timeout") category: Category — memory, fault, peripheral, timing, rtos, general keywords: Comma-separated keywords for search matching symptoms: Description of observable symptoms (what the user sees) strategy: Step-by-step debug strategy that worked root_causes: Common root causes for this type of issue fix_patterns: Patterns for fixing this type of issue
Returns: Confirmation with the saved file path
Inputs: name (required), category (required), keywords (required), strategy (required), +3 more. Returns: result
search_debug_skillsA
Search debug skills by keywords matching symptoms or categories.
Searches through skill names, keywords, categories, and content body.
Args: keywords: Space-separated search terms (e.g., "HardFault stack crash")
Returns: Matching skills with relevance ranking
Inputs: keywords (required). Returns: result
select_coreA
Select the active CPU core for debugging.
In multicore setups, switches the debugger focus to the specified core. Subsequent commands (breakpoints, register reads, etc.) target this core.
Args: core: Core number (0-based, e.g., 0, 1, 2 for TC397)
Returns: Confirmation with current core state
Inputs: core (required). Returns: result
send_messageA
Display a message in the TRACE32 message line (MSG).
Messages appear in the TRACE32 GUI status bar and can be used for debugging status, progress updates, or user notifications.
Args: text: Message text to display level: Message level — "info", "warning", "error"
Returns: Confirmation
Inputs: text (required), level. Returns: result
set_action_breakpointA
Set an action breakpoint that executes a TRACE32 command when hit.
The target briefly stops, the command executes, then optionally resumes. Useful for logging variable values, collecting trace data, etc.
Args: address: Address or symbol name command: TRACE32 command to execute on hit (e.g., "Var.print counter") resume: True to auto-resume after command (default), False to stay stopped
Returns: Confirmation of action breakpoint
Inputs: address (required), command (required), resume. Returns: result
set_breakpointA
Set a breakpoint at the specified address or symbol.
Args: address: Address (hex e.g. "0x80001000") or symbol name (e.g. "main") type: Breakpoint type — "program", "read", "write", or "readwrite" impl: Implementation — "auto", "soft" (software), or "hard" (hardware)
Returns: Breakpoint details confirming the set operation
Inputs: address (required), impl, type. Returns: result
set_cache_readA
Enable or disable cache-aware memory reads.
When ON, the default data access class (D:) shows cached data from the CPU's point of view instead of stale bus-level data. Essential for debugging code that modifies cached memory (e.g., LMU on TC39x).
Args: enabled: True to enable cache-aware reads, False to disable
Returns: Confirmation
Inputs: enabled. Returns: result
set_conditional_breakpointA
Set a conditional breakpoint that only stops when a condition is true.
Args: address: Address or symbol (e.g., "main", "0x80001000", "sieve\11") condition: Condition expression. HLL example: "(counter > 10) && (flag == 1)" TRACE32 example: "Register(D0)>5" language: "hll" for C/C++ syntax, "t32" for TRACE32 PRACTICE syntax
Returns: Confirmation of conditional breakpoint
Inputs: address (required), condition (required), language. Returns: result
set_count_breakpointA
Set a count breakpoint that stops after N-th hit.
Useful for breaking in a loop at a specific iteration.
Args: address: Address or symbol name count: Number of hits before stopping (e.g., 100 = stop on 100th hit) impl: "auto", "soft" (software counter, intrusive), or "hard" (on-chip counter, real-time)
Returns: Confirmation of count breakpoint
Inputs: count (required), address (required), impl. Returns: result
set_data_breakpointA
Set a data breakpoint that triggers on memory read/write access, optionally matching a value.
Args: address: Variable name or memory address (e.g., "myVar", "0xD0000100") access: Access type — "read", "write", or "readwrite" data_value: Optional data value to match (e.g., "0x33", "0x0"). Empty = any value. data_width: Width for value matching — "byte", "word", "long", "quad", "auto"
Returns: Confirmation of data breakpoint
Inputs: address (required), access, data_value, data_width. Returns: result
set_debugger_modeA
Set the debugger operational mode.
Controls how TRACE32 responds to target state changes.
Args: mode: Debugger mode: "attach" — attach to running target without resetting "standby" — monitor power cycles, auto-reconnect "no_standby" — disable power cycle monitoring
Returns: Confirmation
Inputs: mode (required). Returns: result
set_event_actionA
Set a command to execute when a specific event occurs.
Allows automated responses to debugger events (e.g., run a script when target halts, collect trace data on breakpoint hit).
Args: event: Event type — "break", "go", "reset", "power" command: TRACE32 command to execute (e.g., "DO my_script.cmm", "Var.view myVar", "Trace.List")
Returns: Confirmation
Inputs: event (required), command (required). Returns: result
set_peripheral_suspendA
Enable or disable automatic peripheral suspend when CPU halts.
When ON, peripheral modules (timers, watchdogs, communication) are automatically suspended when the debugger halts the CPU. This prevents watchdog timeouts and timer overflows during debugging.
Args: enabled: True to enable peripheral suspend, False to disable
Returns: Confirmation
Inputs: enabled. Returns: result
set_reset_behaviorA
Configure reset behavior for the debugger.
Determines how TRACE32 handles soft resets, hard resets, and power cycles.
Args: behavior: Reset behavior mode: "restore_go" — halt briefly to restore debug resources, then continue "run_restore" — restore debug resources while CPU runs (may miss breakpoints) "halt" — halt CPU at reset vector after reset
Returns: Confirmation of reset behavior setting
Inputs: behavior (required). Returns: result
set_standby_modeA
Enable or disable standby mode for power cycle detection.
When ON, TRACE32 monitors VTREF to detect power cycles and can automatically reconnect and restore debug state.
Args: enabled: True to enable standby mode, False to disable
Returns: Confirmation
Inputs: enabled. Returns: result
set_system_optionB
Set a specific SYStem.Option value.
Generic tool for any SYStem.Option.* setting not covered by dedicated tools.
Args: option: Option name (e.g., "PERSTOP", "DCREAD", "RESYNC") value: Value to set (e.g., "ON", "OFF", "RestoreGo")
Returns: Confirmation
Inputs: value (required), option (required). Returns: result
set_task_breakpointA
Set a task-specific breakpoint that only triggers for a specific OS task/thread.
Requires OS-awareness to be configured.
Args: address: Address or symbol name task: Task identifier — name (e.g., "idle_task"), ID (e.g., "14"), or magic number
Returns: Confirmation of task breakpoint
Inputs: task (required), address (required). Returns: result
set_temporary_breakpointA
Set a temporary breakpoint that auto-deletes after first hit.
Equivalent to "run to this address once".
Args: address: Address or symbol name
Returns: Confirmation
Inputs: address (required). Returns: result
statusA
Get current connection status and TRACE32 system information.
Returns: Connection state, TRACE32 version, and target CPU state
Inputs: no named parameters. Returns: result
stepA
Single-step program execution.
Args: mode: Step mode — "into" (step into functions), "over" (step over), "out" (step out of current function)
Returns: New program counter address after step
Inputs: mode. Returns: result
step_mode_listA
List all supported step modes and their behavior.
Returns: Table of step modes with descriptions
Inputs: no named parameters. Returns: result
suspend_peripheralA
Configure suspend mode for a specific peripheral module.
Sets how a peripheral responds when the CPU is halted by the debugger.
Args: peripheral: Peripheral register name (e.g., "GPT120_OCS", "STM0_OCS") suspend_mode: "hard" — suspend immediately on CPU halt "soft" — suspend after current operation completes "none" — never suspend
Returns: Confirmation
Inputs: peripheral (required), suspend_mode. Returns: result
symbol_by_addressA
Look up a debug symbol by its address to get its name.
Args: address: Memory address as hex string (e.g., "0x80001000")
Returns: Symbol name at or near the given address
Inputs: address (required). Returns: result
symbol_by_nameA
Look up a debug symbol by its name to get its address.
Args: name: Symbol name (function, variable, label — e.g., "main", "g_counter")
Returns: Symbol address and access info
Inputs: name (required). Returns: result
sync_coresA
Synchronize Go/Step/Break across multiple cores.
Uses the SYnch command to coordinate execution state between cores in SMP or synchronized AMP mode.
Args: action: Synchronization action: "go" — run all synchronized cores "break" — halt all synchronized cores "step" — single-step all synchronized cores
Returns: Confirmation of sync operation
Inputs: action. Returns: result
toggle_breakpointA
Enable or disable a breakpoint without deleting it.
Args: address: Address or symbol name of the breakpoint enabled: True to enable, False to disable
Returns: New breakpoint state
Inputs: address (required), enabled (required). Returns: result
trace_clearA
Clear the trace buffer.
Resets the MCDS trace buffer for a fresh recording.
Returns: Confirmation
Inputs: no named parameters. Returns: result
trace_data_readA
Configure data read trace on a variable.
Records every read access to the specified variable in the trace buffer.
Args: variable: Variable name or address (e.g., "myVar", "0xD0000100")
Returns: Confirmation of data read trace setup
Inputs: variable (required). Returns: result
trace_data_writeA
Configure data write trace on a variable.
Records every write access to the specified variable in the trace buffer. Optionally filters by data value.
Args: variable: Variable name or address (e.g., "flags[12]", "myVar", "0xD0000100") data_value: Optional filter — only trace writes matching this value (e.g., "0x33") data_width: Data width for value matching — "byte", "word", "long", "quad", "auto"
Returns: Confirmation of data write trace setup
Inputs: variable (required), data_value, data_width. Returns: result
trace_listA
Display the recorded trace buffer contents.
Shows the trace list with instruction flow, data accesses, and timestamps (if enabled). The target must be halted.
Args: max_records: Maximum number of trace records to display (default: 100)
Returns: Formatted trace listing
Inputs: max_records. Returns: result
trace_profile_chartA
Display a profile chart from recorded trace data.
Shows instruction execution statistics per function based on trace data. Requires trace data to have been recorded first.
Returns: Formatted profile chart
Inputs: no named parameters. Returns: result
trace_set_triggerA
Set a trace trigger breakpoint.
Configures a breakpoint that controls trace recording start/stop.
Args: address: Function name, symbol, or address (e.g., "sieve", "0x80001000"). Supports symbol.EXIT(func) syntax for function exit triggers. trigger_type: "stop" — stop recording at this point (TraceTrigger) "enable" — enable recording at this point (TraceEnable) "disable" — disable recording at this point
Returns: Confirmation of trace trigger
Inputs: address (required), trigger_type. Returns: result
trace_startA
Start on-chip trace recording using MCDS.
Configures and starts the MCDS trace engine. Must be called before running the target. Call trace_stop() and trace_list() after the target halts.
Args: sources: List of trace sources to enable. Supported values: "program" — instruction flow (PC trace) "write_addr" — data write addresses "write_data" — data write values "read_addr" — data read addresses "read_data" — data read values Default: ["program"] timestamps: Enable trace timestamps (default: True)
Returns: Confirmation of trace configuration
Inputs: sources, timestamps. Returns: result
trace_stateA
Get current MCDS trace state and configuration.
Shows the MCDS state window with current trace source settings, buffer status, and configuration.
Returns: MCDS state information
Inputs: no named parameters. Returns: result
trace_stopA
Stop the on-chip trace recording.
Call after the target halts (e.g., at a breakpoint or after manual halt).
Returns: Confirmation that trace recording stopped
Inputs: no named parameters. Returns: result
var_setA
Set a C/C++ variable to a new value on the target.
The target must be halted. Supports any assignable lvalue.
Args: name: Variable name (e.g., "counter", "myStruct.field", "array[0]") value: New value as C expression (e.g., "42", "0xFF", "NULL")
Returns: Confirmation of variable modification
Inputs: name (required), value (required). Returns: result
var_viewA
View a C/C++ variable, structure, array, or expression with full expansion.
Shows the complete content of complex data types including nested structs, arrays, and pointer targets. Much more detailed than read_variable.
The target must be halted.
Args: expression: C variable name, struct member, array, or expression (e.g., "myStruct", "array[0]", "pTask->state", "%SpotLight")
Returns: Formatted variable view showing all fields and values
Inputs: expression (required). Returns: result
watchpin_configureA
Configure a WatchPin to trigger on specific events.
Args: pin: WatchPin number (1, 2, 3, or 4 depending on hardware) trigger: Trigger condition: "break" — pulse when target halts "go" — pulse when target runs "trace_start" — pulse when trace recording starts "trace_stop" — pulse when trace recording stops polarity: Output polarity — "high" (active high) or "low" (active low)
Returns: Confirmation of WatchPin configuration
Inputs: pin (required), trigger, polarity. Returns: result
watchpin_disableA
Disable WatchPin output hardware.
Deactivates all WatchPin outputs.
Returns: Confirmation
Inputs: no named parameters. Returns: result
watchpin_enableA
Enable WatchPin output hardware.
Activates the WatchPin output pins on the debugger. These pins generate logic signals that can be connected to external test equipment.
Returns: Confirmation
Inputs: no named parameters. Returns: result
watchpin_manual_pulseA
Manually pulse a WatchPin for testing.
Useful for verifying WatchPin hardware connections before setting up automatic triggers.
Args: pin: WatchPin number duration_ms: Pulse duration in milliseconds (default: 10)
Returns: Confirmation
Inputs: pin (required), duration_ms. Returns: result
watchpin_set_action_breakpointA
Set an action breakpoint that pulses a WatchPin when hit.
Useful for correlating software events with external hardware (e.g., oscilloscope). The target briefly stops, the WatchPin pulses, then execution resumes.
Args: address: Address or symbol name pin: WatchPin number to pulse pulse_width_us: Pulse width in microseconds (default: 100)
Returns: Confirmation
Inputs: pin (required), address (required), pulse_width_us. Returns: result
watchpin_stateA
Get current WatchPin configuration and state.
Shows which WatchPins are enabled, their trigger conditions, and polarity.
Returns: WatchPin state information
Inputs: no named parameters. Returns: result
write_memoryA
Write data to target memory at a given address.
Args: address: Memory address as hex string (e.g., "0x80000000") or symbol name data: Hex string of bytes to write (e.g., "DEADBEEF" for 4 bytes) width: Access width in bits — 8, 16, 32, or 64 (default: 32) access: Access class prefix (e.g., "D:" for data). Empty = default.
Returns: Confirmation with number of bytes written
Inputs: data (required), address (required), width, access. Returns: result
write_registerA
Write a value to a CPU register.
Args: name: Register name (e.g., "PC", "SP", "R0") value: Integer value to write
Returns: Confirmation with the register's new value
Inputs: name (required), value (required). Returns: result
write_variableA
Write a value to a C/C++ variable on the target.
The target must be halted (stopped) for variable writes to work.
Args: name: Variable name as it appears in source code value: Value to write (integer, float, or string representation)
Returns: Confirmation with the new value
Inputs: name (required), value (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 112 tools
While each tool has a distinct function, the high granularity creates numerous similar-purpose tools (e.g., multiple breakpoint types, multiple memory read variants, multiple step/go commands). The descriptions help differentiate, but an agent may struggle to select the correct tool among many closely related options.
Most tools follow a verb_noun pattern with underscores (e.g., read_memory, set_breakpoint). Minor deviations exist, such as 'step_mode_list' (noun first) and 'bmc_set_atob' (prefix then verb), but overall the naming is predictable and readable.
With 112 tools, the set is excessively large for an MCP server. This overwhelms agent selection and increases the risk of mis-picking. A debugger surface should typically be 10-20 tools; this is far beyond that, severely hurting usability.
The tool set covers the full debug workflow: connection, target control, breakpoints (all types), memory/register access, trace, performance counters, build/flash, system configuration, and even a knowledge base. No obvious gaps exist for the stated AURIX debugging domain.
Maintenance
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
Agent Replay Debugger MCP — record every agent step + deterministic replay. Step-debugger for
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server enabling AI agents to manage Bitrix24 features via standardized protocol
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that exposes GDB debugging as tools. An AI assistant can set breakpoints, run programs, step through code, inspect variables and memory, and examine registers — all via structured tool calls. Reverse debugging with rr is also supported.343MIT
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to control GDB debugging sessions, including breakpoint management, thread analysis, and variable inspection, using the GDB/MI protocol.221MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes LLDB debugging capabilities, enabling AI-assisted interactive debugging of C/C++ applications through 40 specialized tools.22 PyPI4MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for AI-assisted Python debugging using debugpy and Debug Adapter Protocol, enabling AI agents to run tests, set breakpoints, and inspect variables via natural language.8MIT