[Paper Review] The Visual Debugger: Past, Present, and Future
This paper presents the Visual Debugger, an IntelliJ IDEA and Android Studio plugin that enhances program comprehension by visualizing stack frame variables as interactive object diagrams during debugging. Built on a WebSocket-based Visual Debugging API and using embedded web technologies via JCEF, the tool improves IDE integration, adds change highlighting and debug history, and proposes standardization via the Debug Adapter Protocol (DAP) for broader IDE support.
The Visual Debugger is an IntelliJ IDEA plugin that presents debug information as an object diagram to enhance program understanding. Reflecting on our past development, we detail the lessons learned and roadblocks we have experienced while implementing and integrating the Visual Debugger into the IntelliJ IDEA. Furthermore, we describe recent improvements to the Visual Debugger, greatly enhancing the plugin in the present. Looking into the future, we propose solutions to overcome the roadblocks encountered while developing the plugin and further plans for the Visual Debugger.
Motivation & Objective
- Improve program comprehension during debugging by replacing or augmenting textual variable views with visual object diagrams.
- Address challenges in integrating web-based visual debugging tools into native IDEs like IntelliJ IDEA.
- Enhance plugin usability and performance through embedded browser support and optimized data loading.
- Enable broader IDE compatibility by proposing standardization via the Debug Adapter Protocol (DAP).
- Support future extensibility to other IDEs and programming languages through decoupled architecture and reusable visualization components.
Proposed method
- Decouples debugging and visualization into two components connected via a WebSocket-based Visual Debugging API.
- Uses the Java Chromium Embedded Framework (JCEF) to embed a web-based browser within the IDE for rendering object diagrams.
- Implements real-time synchronization between the IDE debugger and the visualizer using event-driven updates over the Visual Debugging API.
- Introduces visual enhancements such as color-coded change highlighting and a debug history feature to track state evolution.
- Adopts the Debug Adapter Protocol (DAP) as a future standard to unify access to debugging functionality across different IDEs.
- Leverages web technologies and a reusable object diagram library to ensure cross-IDE and cross-language extensibility.
Experimental results
Research questions
- RQ1How can visual debugging be effectively integrated into mainstream IDEs like IntelliJ IDEA without disrupting the existing debugging workflow?
- RQ2What architectural and technical challenges arise when building a web-based visualization component for a native IDE plugin?
- RQ3To what extent do visual enhancements like change highlighting and debug history improve program comprehension during debugging?
- RQ4How can a plugin achieve seamless, performant, and maintainable integration with modern IDEs across different platforms?
- RQ5What role can standardized protocols like DAP play in enabling broader adoption of visual debugging tools across diverse IDE ecosystems?
Key findings
- The Visual Debugger has achieved over 8,500 downloads, representing a more than threefold increase since its initial release, indicating strong user adoption and practical value.
- Embedding the browser via JCEF significantly improved user experience by eliminating external browser dependencies and enabling tighter IDE integration.
- Change highlighting using color-coded visual cues helps users detect state modifications quickly, especially in complex or large object graphs.
- The debug history feature allows users to trace variable evolution across debugging steps, supporting deeper understanding of program state changes.
- The plugin's decoupled architecture enables reuse of the visualization component across different IDEs and programming languages, increasing long-term extensibility.
- The authors identify DAP as a promising standard for future plugin integration, reducing the effort required to port the Visual Debugger to new IDEs like GoLand, Eclipse, or Visual Studio Code.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.