Using Large Language Models to Enhance Programming Error Messages

By Juho Leinonen, Arto Hellas, Sami Sarsa, Brent N. Reeves, Paul Denny, James Prather, Brett A. Becker. 2022

245 citations recorded by the source corpus.

A key part of learning to program is learning to understand programming error messages. They can be hard to interpret and identifying the cause of errors can be time-consuming. One factor in this challenge is that the messages are typically intended for an audience that already knows how to program, or even for programming environments that then use the information to highlight areas in code. Researchers have been working on making these errors more novice friendly since the 1960s, however progress has been slow. The present work contributes to this stream of research by using large language models to enhance programming error messages with explanations of the errors and suggestions on how to fix them. Large language models can be used to create useful and novice-friendly enhancements to programming error messages that sometimes surpass the original programming error messages in interpretability and actionability. These results provide further evidence of the benefits of large language models for computing educators, highlighting their use in areas known to be challenging for students. We further discuss the benefits and downsides of large language models and highlight future streams of research for enhancing programming error messages.

Subfields: Computer Science Applications, Information Systems, Large Language Models, Software Engineering

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Science Applications

  1. Paul Denny
  2. Juho Leinonen
  3. Arto Hellas
  4. Sami Sarsa
  5. Stephen MacNeil
  6. Seth Bernstein
  7. Andrew Tran
  8. Joanne Kim

In Information Systems

  1. Paul Denny
  2. Juho Leinonen
  3. Arto Hellas
  4. Sami Sarsa
  5. Stephen MacNeil
  6. Seth Bernstein
  7. Andrew Tran
  8. Joanne Kim

In Large Language Models

  1. Paul Denny
  2. Juho Leinonen
  3. Sami Sarsa
  4. Arto Hellas
  5. James Prather
  6. Brett A. Becker
  7. Brent N. Reeves
  8. Nasser Giacaman

In Software Engineering

  1. Juho Leinonen
  2. Arto Hellas
  3. Stephen MacNeil
  4. Seth Bernstein
  5. Andrew Tran

Citations in the corpus