Welcome! This guide will help you set up your development environment and understand the contribution process for the Simbolik Solidity Debugger extension.
- Node.js (v18 or higher)
- npm
- Visual Studio Code (latest version)
- Git
- Foundry/Forge (for testing Solidity compilation)
- kontrol-node (the default execution engine; install with
kup install kontrol-node)
-
Clone the repository:
git clone https://github.com/runtimeverification/simbolik-vscode.git cd simbolik-vscode -
Install dependencies:
npm install
-
Build the extension:
npm run build
-
Open in VS Code:
code .
npm run build: bundles the extension (build/extension.js, CommonJS) and the debug server (build/server.mjs, ESM) with esbuild.npm run build:dev: builds thepackages/workspaces, type-checks the extension and bundles the server with source maps.npm run typecheck: type-checks the packages and the server.
Clone it next to simbolik-vscode:
git clone git@github.com:runtimeverification/simbolik-examples.git
launch.json references $workspace/../simbolik-examples.
Use the predefined VS Code launch configurations:
- "Simbolik: Client" - Opens extension development host with
simbolik-examplesworkspace - "Simbolik: Client (Tests)" - Opens with test data for debugging
Press F5 or use the Debug panel to start.
simbolik-vscode/
├── src/
│ ├── extension.ts # Extension entry point
│ ├── DebugAdapter.ts # Debug adapter factory (inline / tcp)
│ ├── serverBridge.ts # Loads the ESM debug server from the extension
│ ├── server.ts # Debug server entry point (build/server.mjs)
│ ├── resolver/ # Turns launch/attach args into a debug session
│ ├── nodeManager.ts # Starts an execution node per debug session
│ ├── nodeSetup.ts # Locates kontrol-node / anvil, explains problems
│ ├── CodelensProvider.ts # Provides "Debug" buttons
│ ├── TestAdapter.ts # Test explorer integration (run, coverage, debug)
│ ├── startDebugging.ts # Builds the launch configuration
│ ├── foundry.ts # Foundry/Forge integration
│ └── utils.ts # Utility functions
├── packages/ # The debug server (see packages/README.md)
├── build/ # Bundled extension and debug server
├── .vscode/
│ └── launch.json # Debug configurations
├── .github/workflows/
│ ├── release.yml # Former release pipeline (GitHub Actions publishing is unavailable)
│ └── test.yml # CI tests
├── scripts/
│ └── release.mjs # Publishes to the Marketplace, Open VSX and GitHub releases
└── package.json # Extension manifest
We use Google TypeScript Style (gts):
# Check for lint errors
npm run lint
# Auto-fix lint errors
npm run fix
# Clean build artifacts
npm run cleanBefore committing, ensure:
npm run typecheck # Type-checks packages and the server
npm run lint # Lints
npm test # Runs the test suite# Run all tests (Vitest)
npm test
# Run the integration test against a live kontrol-node
npm run test:live- Analyzes Solidity files
- Provides "Debug" buttons above debuggable functions
- Identifies contracts and public functions
- Populates the launch configuration (build, method signature, arguments)
- Starts an execution node for the session (
nodeManager.ts) - Hosts the debug server in-process (
inline, default) or as a child process over TCP (tcp), selected bysimbolik.adapterMode
- Handles
forge buildcompilation - Loads build artifacts and metadata
- Configures compilation environment
launch: deploys the contract on the execution node, runssetUp(), calls the method and fetches its traceattach: replays an already-mined transaction, fetching sources from Sourcify- Answers DAP requests over the recorded trace
Extension settings are defined in package.json under contributes.configuration:
simbolik.forge-path- Path to forge executablesimbolik.autobuild- Build automation settingssimbolik.rpc-node-type- Execution node:kontrol-node(default) oranvilsimbolik.auto-start-node- Start a fresh node per debug sessionsimbolik.kontrol-node-path/simbolik.kontrol-node-dir- kontrol-node executable, or a development checkoutsimbolik.anvil-path- Path to anvil executablesimbolik.json-rpc-url- Ethereum JSON-RPC endpoint (when not auto-starting)simbolik.sourcify-url- Sourcify server for source verificationsimbolik.adapterMode- Host the debug serverinlineor overtcp
-
Update Extension Manifest (
package.json)- Add new commands, configurations, or menu items
-
Implement Functionality
- Add logic to appropriate source files
- Keep
src/server.tsandsrc/resolver/free ofvscodeimports: they also run as a standalone Node process
Use the provided npm scripts:
# Patch release (10.0.2 → 10.0.3)
npm run version:patch
# Minor release (10.0.2 → 10.1.0)
npm run version:minor
# Major release (10.0.2 → 11.0.0)
npm run version:major-
Update Version: On your feature branch, or as an admin on master:
npm run version:patch # or minor/major -
Update Changelog:
- Add entry to
CHANGELOG.md - Follow existing format:
## [x.y.z] - YYYY-MM-DD
- Add entry to
-
Test & Commit:
npm run build npm test git add package.json CHANGELOG.md git commit -m "Version bump to x.y.z"
-
Push Changes to Master:
git push origin master
-
Create PR & Merge
-
Publish: From an up-to-date checkout of master, run:
npm run release
The script checks the CHANGELOG entry, builds and packages the
.vsix, publishes it to the Visual Studio Marketplace and Open VSX, and attaches it to a GitHub release tagged with the version. It prompts for the Marketplace PAT and the Open VSX token (input is hidden) and verifies both before building. Requirements: Node.js 22+ and a logged-in GitHub CLI (gh auth login).Options go after
--, e.g.npm run release -- --dry-run(see--help):--dry-runbuilds and packages without publishing--skip-marketplace,--skip-openvsx,--skip-githubpublish selectively, e.g. to retry a registry that failed (re-publishing an existing version is skipped)- Tokens can come from a password manager via
VSCE_PATandOVSX_PATinstead of the prompt
-
Check Extension Host Console:
- Help → Toggle Developer Tools (in Extension Host)
-
View Extension Logs:
- Open Output panel → "Simbolik Solidity Debugger"
-
Inspect the Execution Node and Debug Server:
- Open Output panel → "Simbolik Node" for the node's log
- The debug console shows the JSON-RPC calls made while launching
For testing, you'll need a Foundry project structure:
test-project/
├── foundry.toml
├── src/
│ └── Contract.sol
└── test/
└── Contract.t.sol
The extension expects:
foundry.tomlconfiguration file- Contracts in
src/directory - Build artifacts in
out/directory (created byforge build)
- Build Errors: Ensure all dependencies are installed
- Extension Not Loading: Check console for TypeScript errors
- Execution Node Not Found: Install kontrol-node (
kup install kontrol-node) or setsimbolik.kontrol-node-path - Foundry Integration: Ensure
forgeis in PATH
-
Fork & Branch:
git checkout -b feature/your-feature-name
-
Develop & Test:
- Write code following existing patterns
- Add tests if applicable
- Ensure linting passes
-
Commit & Push:
- Use descriptive commit messages
- Reference issues if applicable
-
Create Pull Request:
- Provide clear description
- Include testing instructions
- Link related issues
- Follow Google TypeScript Style (enforced by gts)
- Use meaningful variable/function names
- Add JSDoc comments for public APIs
- Keep functions focused and testable
When reporting bugs, please include:
- VS Code version
- Extension version
- Operating system
- Minimal reproduction steps
- Error messages/logs
- Discord: https://discord.gg/jnvEeDxW
- Telegram: https://t.me/rv_simbolik
- Issues: GitHub Issues for bug reports and feature requests
Thank you for contributing to Simbolik! 🎉