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 language | English |
---|---|
Title of host publication | 2024 IEEE 13th International Conference on Engineering Education (ICEED) |
Subtitle of host publication | Dissemination and Advancement of Engineering Education using Artificial Intelligence |
Publisher | IEEE |
ISBN (Electronic) | 979-8-3503-6741-6 |
ISBN (Print) | 979-8-3503-6742-3 |
DOIs | |
Publication status | Online published - 20 Mar 2025 |
Event | 13th IEEE International Conference on Engineering Education (ICEED 2024): Dissemination and Advancement of Engineering Education using Artificial Intelligence - Kanazawa, Japan Duration: 19 Nov 2024 → 20 Nov 2024 https://ieeexplore.ieee.org/xpl/conhome/10923724/proceeding?sortType=vol-only-seq&isnumber=10923726&pageNumber=1 |
Conference
Conference | 13th IEEE International Conference on Engineering Education (ICEED 2024) |
---|---|
Abbreviated title | ICEED 2024 |
Country/Territory | Japan |
City | Kanazawa |
Period | 19/11/24 → 20/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