This repository contains a VS Code Debug Adapter Protocol (DAP) debugger for ROCm rocgdb.
This is currently an early scaffold:
- Starts a DAP adapter (
type: rocgdb) implemented in Node.js - Spawns
rocgdb --interpreter=mi2 - Intended to grow into full debugging support (breakpoints/threads/stack/variables) and AMDGPU-specific helpers (waves/lanes/registers/LDS/global memory)
- VS Code
>= 1.85 - ROCm
rocgdbat/opt/rocm/bin/rocgdb(configurable viarocgdbPath) - Node.js available on the remote/host where the extension runs (for the adapter)
npm install
npm run build{
"version": "0.2.0",
"configurations": [
{
"type": "rocgdb",
"request": "launch",
"name": "rocgdb: Launch",
"program": "${workspaceFolder}/a.out",
"args": [],
"cwd": "${workspaceFolder}",
"rocgdbPath": "/opt/rocm/bin/rocgdb",
"rocgdbArgs": [],
"stopOnEntry": false
}
]
}