From Video Games to Debugging Code

Novice programmers often struggle with many concepts underlying computer programming. The concept of a program variable--that is, a named storage location--is a centerpiece of the programming languages typically taught in introductory computer science courses including C, Java, JavaScript, Python, and C++. However, to date empirical studies suggest that misinterpretation of the state of a program remains a primary source of errors by novice programmers. We address this challenge by defining a game-based approach to interactive program debugging and by emphasizing the concept of program state in our approach. We specifically chose the metaphor of the popular ``Space Invaders'' videogame to provide a visual interpretation that reinforces the notion of program state in a way likely to be attractive to college students majoring in computer science. Our visualization technique and the resulting toolset are intended to steer students toward a debugging mindset centered on read and write operations of program variables. Here we discuss the key aspects of our game-based debugging approach. We also report preliminary results from field studies with actual college students who used our toolset to debug simple programs in which we injected faults.

[1]  Andrian Marcus,et al.  A task oriented view of software visualization , 2002, Proceedings First International Workshop on Visualizing Software for Understanding and Analysis.

[2]  Judithe Sheard,et al.  Analysis of research into the teaching and learning of programming , 2009, ICER '09.

[3]  Jeisson Hidalgo-Céspedes Allegories for learning abstract programming concepts , 2014, ICER '14.

[4]  Juha Sorva,et al.  Visual program simulation in introductory programming education , 2012 .

[5]  John T. Stasko,et al.  Please address correspondence to , 2000 .

[6]  Carlisle E. George,et al.  EROSI—visualising recursion and discovering new errors , 2000, SIGCSE '00.

[7]  Iain Milne,et al.  OGRE: Three-Dimensional Program Visualization for Novice Programmers , 2004, Education and Information Technologies.

[8]  Sue Fitzgerald,et al.  Debugging: a review of the literature from an educational perspective , 2008, Comput. Sci. Educ..

[9]  A. J. Ko Preserving non-programmers' motivation with error-prevention and debugging support tools , 2003, IEEE Symposium on Human Centric Computing Languages and Environments, 2003. Proceedings. 2003.

[10]  Jason Leigh,et al.  Visualizing object-oriented software in virtual reality , 2001, Proceedings 9th International Workshop on Program Comprehension. IWPC 2001.

[11]  Alessandro Orso,et al.  Are automated debugging techniques actually helping programmers? , 2011, ISSTA '11.

[12]  Leslie J. Waguespack,et al.  Visual metaphors for teaching programming concepts , 1989, SIGCSE '89.