Strucdbg - Structured Log Debugger
Strucdbg transforms the debugging experience by capturing and visualizing structured logs from your debug sessions in a clean, organized interface.
What is Strucdbg?
When debugging modern applications that use structured logging (JSON logs from libraries like slog, zap, structlog, etc.), the output can be overwhelming and difficult to read. Strucdbg automatically captures these structured logs during debug sessions and presents them in a beautiful, easy-to-navigate panel.

Key Features
🎯 Automatic Log Capture
- Activates automatically when you start a debug session
- No configuration required - just start debugging
- Works with Go, Python, and other languages
📊 Structured Log Visualization
- Severity-based color coding: Quickly identify errors, warnings, and info messages
- Collapsible metadata: Keep your view clean while preserving access to detailed context
- Operation grouping: Related logs with the same
operation_id are grouped together for easy tracing
- Timestamp display: Track when events occurred in your application

🐛 Enhanced Stack Traces
- Interactive stack traces: Click on file paths to jump directly to the source code
- Code preview: Hover over stack frames to see the actual code without leaving the log view
- Multi-level exception support: Visualize nested exceptions and their propagation

🔍 Multi-Session Support
- Tabbed interface: Each debug session gets its own tab
- Session hierarchy: Child debug sessions are tracked with their parents
- Session switching: Easily navigate between concurrent debug sessions
📝 Fallback for Raw Logs
- Non-JSON output are displayed as you are used to inside of the relevant session tab
- Never lose visibility into plain text debug output
How It Works
- Start debugging your application (F5 or Run → Start Debugging)
- Open the Structured Logs panel from the bottom panel (it appears automatically)
- Watch logs appear in real-time as your application runs
- Click on stack traces to navigate to source code
- Expand metadata to see additional context
Supported Languages
Strucdbg includes specialized parsers for:
- Go:
log/slog, zap, and other JSON-based loggers
- Python:
structlog and similar structured logging libraries
- Other languages: Generic JSON log support with automatic severity detection
Perfect For
✅ Debugging microservices with distributed tracing
✅ Analyzing application behavior with contextual logging
✅ Troubleshooting errors with detailed exception information
✅ Understanding log flow across multiple operations
✅ Keeping your debug console clean and organized
Get Started in Seconds
- Install the extension
- Open a project with structured logging
- Start a debug session that outputs JSON logs
- View your logs in the "Structured Logs" panel, can be found in the "panel" next to Debug Console and Terminal
No configuration files, no setup wizards - just install and debug.
Preview / Breaking Changes
This extension is currently in preview. See examples in the repository for sample projects demonstrating structured logging with Go and Python. Please understand that this project is in a very early alpha, at any point breaking changes might occur. Please see the section below on how you can help support this project.
Support this project
Raising issues
This project is in a very early stage of development, as such there are no end to end tests and I am only testing on my
personal machine. If any issues occur please raise them on the Github Page,
this helps me make this extension compatible with all setups.
Contributing
Extension development is not (yet) my expertise, as such I would appreciate feedback and code contributions on my repo.
Please feel free to fork and make changes to the repo and create pull requests. See the repository readme for more info.