An interactive debugging tool for C++ based on dynamic slicing and dicing

Main Article Content

Winai Wichaipanitch
Samadzadeh M. H.


The main objective of this work was to develop an interactive debugging tool for C++ programs. The tool that was developed id called C++ debug and it uses program slicing and dicing techniques. The design started by including simple statements first and then expanded to pointers, structures, functions, and classes. In order for C++ debug to be more powerful , dynamic slicing rather than static slicing was chosen. The work includes new algorithms that handle Class, Function, and Pointer in C++. The results of this work are reported in two parts:

                PART I : Definitions and Algorithms,

                PART II : Implementation, Testing, and Evaluation.

                This is part II that reports on the overall design of C++Debug, some of its main implementation issues including its complexity, the testing of C++Debug, and its evaluation results.

Article Details

How to Cite
Wichaipanitch, W., & M. H., S. (2003). An interactive debugging tool for C++ based on dynamic slicing and dicing. Journal of Engineering, RMUTT, 4, 76–83. Retrieved from
Research Articles


"Bison 1.35 Manual," http:1// bison-1.35/html_mono/ bison.html.gz,Last Update: March 2000, Last Access: April 30,2003.

"CoolAid: The Cool Reference Manual,", Last Update: January 1994, Last Access:April 30, 2003.

"Flex, version 2.5 A Fast Scanner Generator Edition 2.5, March 1995,", LastUpdate: February 23, 2001,Last Access: April 30, 2003.

Keith Brian Gallagher, Using Program Slicing in Software Maintenance, Ph.D. Dissertation, Computer Science Department, University of Maryland, Baltimore County, MD, 1990.

Keith B. Gallagher and James R. Lyle, "Using Program Slicing in Software Maintenance," IEEE Transactions on Software Engineering, Vol. 17, No.8, pp. 751-761, August 1991.

James R. Lyle, Evaluating Variations on Program Slicing for Debugging, Ph.D. Dissertation,Computer Science Department, University of Maryland, College Park, MD, 1984.

John McDermid, Software Engineer's Reference Book, CRC Press, Inc., Boca Raton, Florida,1993.

B. Stroustrup, C++ Programming Language,3rd Edition, Addison-Wesley, Inc., Reading,Massachusetts, 1997.

"UNIX IN A NUTSHELL," catalog/unixcd /chapter /c02 _043.htm,Last Update: November 1998, Last Access: May19, 2003.