StackScope provides flexible memory inspection with support for multiple numeric formats (hex, decimal, octal), stack-focused views, and register tracking such as SP and PC. Designed for low-level debugging workflows, it helps developers understand how memory changes during execution.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
VS Code extension for debugger-backed memory inspection.
Overview
StackScope is a VS Code extension for memory inspection during debug sessions. It uses DAP to read memory and resolve expressions/addresses/registers, and renders a virtualized grid with hex/decoded columns. Built for low-level workflows like stack debugging, byte-change tracking, and navigation between memory and execution context.
Features
Memory reads via DAP readMemory.
Virtualized grid with hex/decoded columns.
Workspace-persisted presets (save/delete).
Quick targets for $pc, $sp, $lr.
Read-only register panel.
Configurable register sets.
Call stack/disassembly navigation in editor-tab.
Changed-byte highlighting across runs.
Workspace-scoped view state persistence.
Tech Stack
TypeScript 5.9
React 18
VS Code Extension API (^1.110.0)
Esbuild (bundle)
ESLint 9
Getting Started
Requirements:
VS Code ^1.110.0
Active debug session
Adapter support for readMemory and evaluate
Basic flow:
Start debugging and pause execution.
Open StackScope: Open Memory View.
Enter target (e.g. 0x20000000, $sp, &myVar) and press Go.
Adjust columns, unit size, formats, and total size in Settings.
Use register panel and register set selector.
Open StackScope: Open Call Stack (Editor Tab) to navigate frames and disassembly.
Development Workflow
pnpm install
pnpm run compile
For local debugging, use Run Extension in .vscode/launch.json.