Using Large Language Models to Enhance Programming Error Messages

10/20/2022
by   Juho Leinonen, et al.
0

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 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.

READ FULL TEXT
research
08/23/2023

Integrating Large Language Models into the Debugging C Compiler for generating contextual error explanations

This paper introduces a method for Large Language Models (LLM) to produc...
research
08/31/2023

Exploring the Potential of Large Language Models to Generate Formative Programming Feedback

Ever since the emergence of large language models (LLMs) and related app...
research
05/11/2023

Large Language Models Can Be Used To Effectively Scale Spear Phishing Campaigns

Recent progress in artificial intelligence (AI), particularly in the dom...
research
07/20/2023

Addressing Compiler Errors: Stack Overflow or Large Language Models?

Compiler error messages serve as an initial resource for programmers dea...
research
06/27/2019

Enhancing Python Compiler Error Messages via Stack Overflow

Background: Compilers tend to produce cryptic and uninformative error me...
research
09/09/2023

Toward Reproducing Network Research Results Using Large Language Models

Reproducing research results in the networking community is important fo...
research
06/27/2019

FSM Error Messages

Computer Science students, in general, find Automata Theory difficult an...

Please sign up or login with your details

Forgot password? Click here to reset