Compiler error messages: what can help novices?

  • Authors:
  • Marie-Hélène Nienaltowski;Michela Pedroni;Bertrand Meyer

  • Affiliations:
  • Birkbeck, University of London, London, United Kingdom;ETH, Zurich, Switzerland;ETH, Zurich, Switzerland

  • Venue:
  • Proceedings of the 39th SIGCSE technical symposium on Computer science education
  • Year:
  • 2008

Quantified Score

Hi-index 0.01

Visualization

Abstract

Novices find it difficult to understand and use compiler error messages. It is useful to refine this observation and study the effect of different message styles on how well and quickly students identify errors in programs. For example, does an increased level of detail simplify the understanding of errors and their correction? We analyzed messages produced by a number of compilers for five programming languages, and grouped them into three style categories from their level of detail and presentation format, and correlated the level of experience and error type with performance and speed of response. The study involved two groups of students taking an introductory programming course at two different institutions; they used messages in these three styles to debug erroneous code. The results indicate that more detailed messages do not necessarily simplify the understanding of errors but that it matters more where information is placed and how it is structured.