The `lauterbach-trace32-rcl` library provides a Python interface to control Lauterbach TRACE32 debuggers via their Remote Control Protocol (RCP). It enables automation of debugging tasks, script execution, and data extraction from TRACE32. The current version is 1.1.5, with releases typically tied to significant feature additions or TRACE32 protocol updates, implying a moderate release cadence.
pip install lauterbach-trace32-rclVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to establish a connection to a running TRACE32 RCP server, execute a simple command, and read a system variable. It includes error handling and ensures proper disconnection. The `T32_HOST` and `T32_PORT` environment variables can be used to configure the connection, falling back to `localhost:20000` by default.
Update code to access results via attributes (e.g., `result.ok`, `result.result_string`, `result.result_value`) instead of tuple indexing (e.g., `result[0]`).
Ensure `T32Api()` is called with appropriate `host` and `port` arguments, or confirm that the default values `('localhost', 20000)` are suitable for your setup.Before running your Python script, ensure TRACE32 is running and the RCP server is enabled (e.g., via `MENU.OPTION RCPSERVER` command in TRACE32, or by starting TRACE32 with the `-RCL` command-line option). Verify firewall rules if connecting remotely.
Implement comprehensive `try...except T32Error` blocks. For detailed diagnostics, consult the TRACE32 console output or log files for server-side errors, especially for commands that result in unexpected behavior.
No dependency data recorded yet.