Getting started
Simics Target Debug is a VS Code debugger extension that connects to a TCF agent, for example the Simics TCF agent. This page takes you from installing the extension to a running debug session.
Requirements
- VS Code 1.90 or later.
- A target with a TCF agent that VS Code can reach over TCP, for example a Simics session.
- Node.js 24 or later and npm, to build the extension.
Install the extension
The extension is installed from a .vsix file that you build from the repository. Clone it, then run these commands from its root directory:
npm ci
npm run packageThis creates simics-target-debug-<version>.vsix. Install it in VS Code:
- Press Ctrl + Shift + P to open the Command Palette.
- Run Extensions: Install from VSIX....
- Select the generated
.vsixfile.
Start the TCF agent
Start a TCF agent, for example in Simics:
simics> new-tcf-agentThe agent listens on TCP port 1534 by default. Use new-tcf-agent parameters = "TCP::<port>" to select another port.
Attach to the agent
Start debugging with a launch configuration like this one in .vscode/launch.json:
{
"type": "simics-target-debug",
"request": "attach",
"name": "Attach to TCF agent",
"host": "localhost",
"port": 1534
}Without a launch.json, selecting the "Simics Target Debug" debugger attaches to localhost:1534.
When the session has attached, the Call Stack view shows the parts of the target that can run and be stopped. If the agent has the Simics CommandLine service, the Simics console opens in a terminal.
The debugger uses only standard TCF services. The Simics console and snapshots need the Simics agent, and are not available with other agents.
Where to find things

- The Call Stack view shows the processors, processes and threads of the target.
- Open Target Memory in the debug toolbar opens the Target Memory view.
- The extension adds four views to the Run and Debug side bar: Path Maps, Symbol Files, Consoles and Snapshots. Click a title to open the view.
- The Simics console is a terminal in the panel.
Next steps
- Source lines, line stepping and variables need symbol files. Load them with
add-symbol-filein Simics, or from the debug configuration, see Symbol files. - If the sources are not at the path compiled into the debug information, add path mapping rules.
- Launch configurations lists the attributes of a debug configuration and describes the form to edit them.
- Settings lists the options that are the same for all debug sessions.