Exploring the Gender Effect on Cognitive Processes in Program
Debugging based on Eye-movement Analysis
Ting-Yun Hou
1
, Yu-Tzu Lin
1
, Yu-Chih Lin
2
, Chia-Hu Chang
3
and Miao-Hsuan Yen
4
1
Graduate Institute of Information and Computer Education, National Taiwan Normal University,
No.162, Sec. 1, Heping E. Rd., Da-an Dist., Taipei City 10610, Taiwan
2
Department of Biomedical Engineering, Yuanpei University, No.306, Yuanpei St., HsinChu, Taiwan 30015, Taiwan
3
Graduate Institute of Networking and Multimedia, National Taiwan University, Taipei City, Taiwan
4
Graduate Institute of Science Education, National Taiwan Normal University, Taipei City, Taiwan
Keywords: Computer Programming, Eye Tracking, Cognition Process, Program Debugging, Sequential Analysis.
Abstract: This study addresses the gender differences of cognitive processes involved in program debugging. In the
experiment, twenty-five participants were asked to find bugs in the test programs. Eye-movement analysis
was employed to track the students’ gaze paths while they traced and tried to debug the programs. Cognitive
processes were then obtained by employing sequential analysis of gaze data to investigate the significant
sequences of attention areas. Cognitive processes of different genders were investigated by comparing the
tracing sequences of program debugging. The experimental results show that both genders had limited
working memory capacities for debugging the iterative program with complex computation. But females
needed more manual calculation for the recursive program in this study. For the iterative structure, females
tended to grasp the program requirements and then trace into the major part of the program, while males
traced the change of output value according to the logic of the iterative statements. For the recursive
problem, females traced the flow of recursive induction and the stop condition to execute the program and
find bugs, while males traced the recursive function in a more leaping way. This study leaks the gender
differences of cognitive processes in program debugging, based on which instructors/researchers can
develop adaptive computer programming instruction for students of different genders.
1 INTRODUCTION
Many instructors/researchers investigated how to
effectively and efficiently develop students
programming skills. However, it is still challenging
in the field of computer science education (Costelloe,
2004). The most challenging thing for novice
programmers is to locate and resolve bugs (Lahtinen
et al., 2005). Novices usually felt frustrated when
they had to find bugs because their knowledge about
programming was fragile (Perkins and Martin, 1986).
Some research discussed programmers’ debugging
behaviors and found that novice programmers debug
programs in a trial-and-error manner without
comprehending programs so that they usually cannot
resolve errors successfully (Fitzgerald, et al., 2008).
Thus, investigating factors of students’ cognitive
processes in debugging programs is one of critical
keys to improve their programming skills. However,
cognition is a very complex process. Traditional
research on cognition often conducted interviews
and paper tests (Chen et al., 2010), but the results of
these methods might be affected by missing memory,
the exactitude of introspection, and unconscious
social desirability. More than 80% of cognitive
processes are obtained through vision (Sanders and
McCormick, 1987). Eye movements are not smooth
and individuals do not gaze on just one point of a
visual field; they switch between fixation and
saccadic eye movements in a very short space of
time. Such complex brain activities underlie the
concept of cognition. Through the process of
eye-tracking, it is possible to obtain data regarding
the amount and moment of eye fixation, saccade,
gaze duration, regression, skipping, and refixation in
an area of interest (AOI), which in turn can help us
understand the cognitive processes occurring
simultaneously. Eye movements detected by
eye-trackers can provide much information
regarding visual cognitive processes (Just and
469
Hou T., Lin Y., Lin Y., Chang C. and Yen M..
Exploring the Gender Effect on Cognitive Processes in Program Debugging based on Eye-movement Analysis.
DOI: 10.5220/0004415104690473
In Proceedings of the 5th International Conference on Computer Supported Education (CSEDU-2013), pages 469-473
ISBN: 978-989-8565-53-2
Copyright
c
2013 SCITEPRESS (Science and Technology Publications, Lda.)