Code Debugging with LLM-Generated Explanations of Programming Error Messages

Research output: Chapters, Conference Papers, Creative and Literary WorksRGC 32 - Refereed conference paper (with host publication)peer-review

Abstract

Programming is an essential part of the curriculum for electrical, computer and software engineering students. Since one inevitably makes coding mistakes, it is important for programmers to develop debugging skills. However, it could be challenging for beginners to repair a non-compiling program, since programming error messages tend to be opaque, and might not directly address the error. This paper investigates the use of Large Language Models to generate plain, novice-friendly explanations of programming error messages. In an introductory course on Natural Language Processing, We evaluate the extent to which these explanations help students debug Python code with six common programming error categories. Experimental results suggest that explanations generated with zero-shot GPT-4 are effective in raising the code revision success rate. © Copyright 2024 IEEE
Original languageEnglish
Title of host publication2024 IEEE 13th International Conference on Engineering Education (ICEED)
Subtitle of host publicationDissemination and Advancement of Engineering Education using Artificial Intelligence
PublisherIEEE
ISBN (Electronic)979-8-3503-6741-6
ISBN (Print)979-8-3503-6742-3
DOIs
Publication statusOnline published - 20 Mar 2025
Event13th IEEE International Conference on Engineering Education (ICEED 2024): Dissemination and Advancement of Engineering Education using Artificial Intelligence - Kanazawa, Japan
Duration: 19 Nov 202420 Nov 2024
https://ieeexplore.ieee.org/xpl/conhome/10923724/proceeding?sortType=vol-only-seq&isnumber=10923726&pageNumber=1

Conference

Conference13th IEEE International Conference on Engineering Education (ICEED 2024)
Abbreviated titleICEED 2024
Country/TerritoryJapan
CityKanazawa
Period19/11/2420/11/24
Internet address

Funding

This work was partly supported by a Teaching Development Grant from City University of Hong Kong (project 6000834).

Research Keywords

  • computer science
  • computer engineering
  • software engineering
  • Python
  • debugging
  • Large Language Model
  • Programming Error Message

Fingerprint

Dive into the research topics of 'Code Debugging with LLM-Generated Explanations of Programming Error Messages'. Together they form a unique fingerprint.

Cite this