Title :
A Debugging Approach for Java Runtime Exceptions Based on Program Slicing and Stack Traces
Author :
Jiang, Shujuan ; Zhang, Hongchang ; Wang, Qingtan ; Zhang, Yanmei
Author_Institution :
Sch. of Comput. Sci. & Technol., China Univ. of Min. & Technol., Xuzhou, China
Abstract :
Program debugging is an important process to improve the quality of software. Runtime exception can occur often and can be difficult to debug. In this paper, we present a new approach for locating faults that cause runtime exceptions in Java programs due to error assignment of a value that finally leads to the exception. Our approach first uses program slicing to reduce the search scope, then performs a backward data flow analysis, starting from the point where the exception occurred, and then uses stack trace information to guide the analysis to determine the source statement that is responsible for the runtime exception. The paper also presents a case study to demonstrate that the method is available. The approach not only resolves partly the imprecise of static techniques, but also reduces partly the heavy performance overhead of dynamic techniques.
Keywords :
Java; data flow analysis; program debugging; program slicing; software quality; Java runtime exceptions; backward data flow analysis; dynamic techniques; error assignment; program debugging; program slicing; software quality; stack trace information; static techniques; Debugging; Equations; Flow graphs; Java; Performance analysis; Runtime; Software; program debugging; program slicing; runtime exceptions; stack traces; static analysis;
Conference_Titel :
Quality Software (QSIC), 2010 10th International Conference on
Conference_Location :
Zhangjiajie
Print_ISBN :
978-1-4244-8078-4
Electronic_ISBN :
1550-6002
DOI :
10.1109/QSIC.2010.23