|
|
Debug software running in Simics, or on any other TCF agent, from VS Code. The extension uses only standard TCF services, so Simics-specific features (the Simics CLI and snapshots) are simply unavailable on other agents.
The user guide is at https://intel.github.io/simics-vs-code-tcf-debug/. Start with Getting started, which shows how to install the extension, start a TCF agent in Simics and attach to it.
- Call stack – processors, and with OS awareness processes and threads, shown as a tree.
- Stepping – step over, into and out by source line, or by instruction in the Disassembly view.
- Breakpoints – line, function, data, instruction and logpoints, with conditions and hit counts. Function breakpoints can be limited to some cores.
- Variables and expressions – locals, registers, hovers and expressions in the Debug Console, evaluated by the agent in the selected frame.
- Disassembly – the instructions of a stack frame's code, with instruction breakpoints.
- Target Memory – a hex editor for target memory, with search and go to address.
- Simics console – the Simics command line in a terminal.
- Snapshots – take, restore and delete Simics snapshots.
A debug session is set up with a launch configuration, which can load symbol files and map source paths. Options shared by all sessions are settings. See also the limitations.
Requires Node.js 24 or later and npm. Run the commands from the repository root.
Install the dependencies:
npm ciBuild, test and package:
npm run build # type check and bundle the extension
npm test # run the unit tests
npm run package # create simics-target-debug-<version>.vsixFormat the code with Prettier before committing:
npm run formatOther useful commands:
npm run check # type check and run the unit tests
npm run watch # rebuild on changes
npm run compile:production # minified bundle without source mapsTo develop in VS Code, open the repository, select Run Extension in the
Run and Debug view and press F5. This starts npm run watch and opens an
Extension Development Host with the extension loaded. Run Extension
(Clean) does the same with all other extensions disabled.
The user guide is a VitePress site, built from the
Markdown files in docs/.
npm run docs:develop # serve the site, pages reload when edited
npm run docs:build # build the site into docs/.vitepress/dist/
npm run docs:screenshots # make the pictures in docs/images/ againThe pictures are screenshots made by a script. When the UI changes, make them again as .github/skills/docs-screenshots/SKILL.md describes.