Collab Debug
A real-time collaborative debugging extension for Visual Studio Code that enables multiple developers to share debugging sessions, synchronize breakpoints, and capture variable states during runtime.
Features
Real-Time Breakpoint Sync
- Detects breakpoint add/remove events
- Sends breakpoint updates through WebSocket
- Supports collaborative debugging workflows
Variable State Capture
- Captures local variables when debugger pauses
- Sends variable states to connected users
- Helps remote developers inspect runtime data
WebSocket Communication
- Real-time communication between extension and server
- Lightweight collaborative session handling
Multi-User Collaboration
- Shared debugging environment
- Live event synchronization
- Session-based debugging support
Tech Stack
- TypeScript
- Node.js
- VS Code Extension API
- WebSockets (
ws)
- JavaScript Debug Adapter Protocol
Project Structure
collab-debug/
│
├── src/
│ ├── extension.ts
│ ├── wsClient.ts
│ ├── server.js
│
├── screenshots/
│
├── package.json
├── tsconfig.json
├── README.md
Installation
Install using VSIX
- Open Visual Studio Code
- Go to Extensions
- Click the three dots (...) at top-right
- Select:
Install from VSIX
- Choose:
collab-debug-1.0.0.vsix
Running the Project
Step 1: Install Dependencies
Open terminal inside project folder:
npm install
Step 2: Start WebSocket Server
Run:
node src/server.js
Expected output:
✅ WebSocket server running on ws://localhost:3000
Step 3: Launch Extension
Press:
F5
This opens:
Extension Development Host
How to Use
Breakpoint Synchronization
- Open any
.js or .py file
- Click beside line number to add breakpoint
- Breakpoint event is sent to server
- Server logs breakpoint activity
Example output:
{
"type": "breakpoint",
"action": "add",
"file": "test.js",
"line": 4
}
Variable State Capture
- Start debugging
- Execution pauses on breakpoint
- Extension captures local variables
- Variable state is sent to server
Example output:
{
"type": "variable-state",
"variables": [
{
"name": "a",
"value": "10"
},
{
"name": "b",
"value": "20"
}
]
}
Commands
| Command |
Description |
| Connect Session |
Connects extension to collaboration server |
| Share Breakpoints |
Synchronizes breakpoint events |
| Capture Variables |
Sends variable state on debugger pause |
Screenshots
Breakpoint Synchronization
Add screenshot here:

Variable State Capture
Add screenshot here:

WebSocket Events
Breakpoint Add
{
"type": "breakpoint",
"action": "add"
}
Breakpoint Remove
{
"type": "breakpoint",
"action": "remove"
}
Variable State
{
"type": "variable-state"
}
Future Improvements
- Live breakpoint rendering for all users
- Shared call stack visualization
- Real-time console synchronization
- Remote session joining
- Authentication support
- Session persistence
Repository
Repository URL:
https://github.com/collab-and-debug/debugger-extension
Author
Eashwar Polishetti
GitHub:
https://github.com/eashwarpolishetti
License
MIT License
Release
Current Version:
v1.0
VSIX package available in GitHub Releases.