Skip to main content
QUICK REVIEW

[Paper Review] Debugging Static Analysis

Lisa Nguyen Quang, Stefan Krüger|arXiv (Cornell University)|Jan 15, 2018
Software Testing and Debugging TechniquesComputer Science17 references3 citations
TL;DR

This paper introduces Visuflow, an Eclipse-integrated debugging environment for static data-flow analyses that enables developers to visualize and step through both analysis code and target program code simultaneously. A user study shows Visuflow helps analysis writers identify 25% more bugs and fix 50% more errors than standard Eclipse debugging.

ABSTRACT

To detect and fix bugs and security vulnerabilities, software companies use static analysis as part of the development process. However, static analysis code itself is also prone to bugs. To ensure a consistent level of precision, as analyzed programs grow more complex, a static analysis has to handle more code constructs, frameworks, and libraries that the programs use. While more complex analyses are written and used in production systems every day, the cost of debugging and fixing them also increases tremendously. To better understand the difficulties of debugging static analyses, we surveyed 115 static analysis writers. From their responses, we extracted the core requirements to build a debugger for static analysis, which revolve around two main issues: (1) abstracting from two code bases at the same time (the analysis code and the analyzed code) and (2) tracking the analysis internal state throughout both code bases. Most current debugging tools that our survey participants use lack the capabilities to address both issues. Focusing on those requirements, we introduce VisuFlow, a debugging environment for static data-flow analysis that is integrated in the Eclipse development environment. VisuFlow features graph visualizations that enable users to view the state of a data-flow analysis and its intermediate results at any time. Special breakpoints in VisuFlow help users step through the analysis code and the analyzed simultaneously. To evaluate the usefulness of VisuFlow, we have conducted a user study on 20 static analysis writers. Using VisuFlow helped our sample of analysis writers identify 25% and fix 50% more errors in the analysis code compared to using the standard Eclipse debugging environment.

Motivation & Objective

  • To identify the core challenges faced by static analysis developers when debugging their own analyses.
  • To understand the limitations of existing debugging tools in supporting the unique needs of static analysis development.
  • To design and evaluate a specialized debugging environment tailored for static data-flow analysis.
  • To empirically validate that enhanced debugging support improves the efficiency and effectiveness of static analysis development.

Proposed method

  • Conducted a large-scale survey of 115 static analysis developers to identify common debugging challenges, tools used, and desired features.
  • Identified two primary debugging challenges: managing two codebases (analysis and target code) and tracking internal analysis state across both.
  • Designed Visuflow, an Eclipse plugin that provides synchronized visualization of data-flow states and special breakpoints for stepping through both codebases.
  • Integrated Visuflow with the Soot framework to support Java-based data-flow analyses.
  • Performed a controlled user study with 20 static analysis developers comparing Visuflow and standard Eclipse debugging.
  • Collected and analyzed quantitative and qualitative data on error detection and fix rates, usability, and feature preference.

Experimental results

Research questions

  • RQ1What are the main challenges static analysis developers face when debugging their own analyses compared to general application code?
  • RQ2Which debugging features are most desired and effective for static analysis development?
  • RQ3How does a specialized debugging environment like Visuflow compare to standard IDE debugging in terms of effectiveness and efficiency?
  • RQ4Which specific features of Visuflow contribute most to improved debugging outcomes?

Key findings

  • Static analysis debugging is significantly more complex than general application debugging due to the need to reason about two separate codebases simultaneously.
  • The primary debugging challenges are abstracting from both the analysis code and the target program code, and tracking the internal state of the analysis across both.
  • Standard debugging tools like Eclipse’s debugger lack features to support dual-codebase debugging and state tracking, limiting their effectiveness.
  • In a user study, Visuflow enabled participants to identify 25% more bugs and fix 50% more errors compared to using standard Eclipse debugging.
  • Participants found Visuflow’s visualization and dual-stepping features significantly more useful than their standard development environment for debugging static analyses.
  • The survey and user study confirm that features such as synchronized visualization and special breakpoints are highly effective for debugging complex static analyses.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.