Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>TRACE32® DebugNew to Visual Studio Code? Get it now.
TRACE32® Debug

TRACE32® Debug

Lauterbach

|
1 install
| (0) | Free
Debugging with TRACE32® in Visual Studio Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Lauterbach TRACE32® Debug Extension

This extension lets you control TRACE32® from Visual Studio Code through the Debug Adapter Protocol (DAP):

  • Attach to and launch TRACE32® PowerView instances.
  • Run-state control: Resume and halt the processor's execution, single-step and set breakpoints.
  • Source-level debugging: Access local variables and inspect the stack frame.
  • Register and memory access
  • Disassembly view: Inspect bare-metal assembly.
  • Control the TRACE32® PowerView command line from the Debug Console.

Using Data.In command to read the misa CSR

  • Run PRACTICE scripts (requires the PRACTICE extension).

Running PRACTICE scripts from VSCode

Installation

  1. Download this extension from the marketplace or install the .vsix manually.
  2. Install a recent version of TRACE32® PowerView (requires 2026.09).
  3. Ensure that the environment variable T32SYS is set or configure the path to your installation with the setting trace32.systemPath.

Debug Configurations

You can attach to or launch TRACE32® PowerView instances. To get started, create debug configuration in launch.json and select the TRACE32 Debug configuration.

Creating debug configurations

Attach to a running TRACE32® PowerView instance

{
  "type": "trace32",
  "request": "attach",
  "name": "TRACE32 Debug: Attach",
  "port": 58870,
  "trace32SystemPath": "${config:trace32.systemPath}",
  "trace32Port": 20000
}

Configuration options:

  • port: TCP port of the debug adapter (required).
  • trace32Port: TCP port of the TRACE32 Remote API (required, default: 20000).
  • trace32Node: Host where the PowerView instance is running (default: localhost).
  • trace32SystemPath: Path to the TRACE32 system directory (default: trace32.systemPath setting).
  • trace32SetupScript: PRACTICE script executed after attaching.
  • trace32SetupScriptArgs: Arguments passed to trace32SetupScript.
  • trace32SetupScriptTimeout: Timeout in seconds for trace32SetupScript.
  • trace32SourceTranslations: See Source Path Translations.

Launch a TRACE32® PowerView instance

{
  "type": "trace32",
  "request": "launch",
  "name": "TRACE32 Debug: Launch",
  "port": 58870,
  "trace32SystemPath": "${config:trace32.systemPath}",
  "trace32Target": "t32marm",
  "trace32Port": 20000,
  "trace32ConnectionScript": "",
  "trace32SetupScript": "",
  "trace32SetupScriptArgs": [],
  "screen": true
}

Configuration options:

  • port: TCP port of the debug adapter (required).
  • address: Host where the debug adapter is running (default: localhost).
  • trace32Port: TCP port of the TRACE32 RCL API (required, default: 20000).
  • trace32SystemPath: Path to the TRACE32 system directory (default: trace32.systemPath setting).
  • trace32Target: TRACE32 executable for the target architecture, e.g. t32marm or t32mriscv (required).
  • trace32ConnectionScript: Connection script executed by PowerView at startup. See Connection Scripts.
  • trace32SetupScript: PRACTICE script executed after PowerView has started.
  • trace32SetupScriptArgs: Arguments passed to trace32SetupScript.
  • trace32SetupScriptTimeout: Timeout in seconds for trace32SetupScript.
  • trace32SourceTranslations: See Source Path Translations.
  • screen: Open the PowerView GUI (default: true).

Connection Scripts

A connection script connects PowerView to a debug module, simulator or other interface. To create a connection script:

  1. Start a PowerView instance
  2. Open the connection configuration: menu File > Connection State, or command CONNECTION.state.
  3. Click "Create connection script" (command CONNECTION.Wizard.CreateScript).

For more information on creating connection scripts, refer to PowerView User's Guide.

Source Path Translations

If the ELF file was compiled under a different path than where the sources live in VSCode, the debug adapter cannot find the sources. Use trace32SourceTranslations to map TRACE32 source paths to VS Code paths. Each entry is a pair [trace32Path, vscodePath], e.g. for an ELF compiled in \work:

"trace32SourceTranslations": [["\\work", "${workspaceFolder}"]]

Extension Settings

  • trace32.systemPath: The global TRACE32 system path used for the TRACE32 debugger.
  • trace32.debugAdapterPath: Path to the t32debugadapter executable. When empty, the adapter is resolved from the TRACE32 system path.

Additional Information

Focus on Debug Console (recommended)

You can configure Visual Studio code such that the focus stays on the Debug Console:

"debug.focusEditorOnBreak": false,
"debug.focusWindowOnBreak": false

Interoperability with Debug Visualizer

Configure the extension to get the context using watch:

"debugVisualizer.debugAdapterConfigurations": {
    "trace32": {
        "context": "watch"
    }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft