Using Large Language Models to Enhance Programming Error Messages
Juho Leinonen, Arto Hellas, Sami Sarsa, Brent Reeves, Paul Denny,, James Prather, Brett A. Becker

TL;DR
This paper explores using large language models to improve programming error messages by making them more understandable and actionable for novices, demonstrating potential benefits in educational contexts.
Contribution
It introduces a novel approach of leveraging large language models to enhance error messages, surpassing traditional methods in interpretability and usefulness for learners.
Findings
Large language models can generate more understandable error explanations.
Enhanced messages improve novice programmers' ability to interpret errors.
Potential for large language models to aid computing education.
Abstract
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 the error. 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTeaching and Learning Programming · Software Engineering Research · Online Learning and Analytics
