Leveraging ChatGPT to Enhance Debugging: Evaluating AI-Driven Solutions in Software Development
DOI:
https://doi.org/10.70112/ajcst-2024.13.1.4261Keywords:
AI-Assisted Debugging, Bug Identification, ChatGPT Debugging, Programming Bug ResolutionAbstract
Debugging is a crucial component of software development, focusing on identifying and correcting problems, commonly known as bugs, in code. Recent advances in artificial intelligence (AI) have introduced new opportunities for automating this process using language models such as ChatGPT. This article explores the use of ChatGPT in addressing programming challenges, assessing its ability to detect, anticipate, and rectify errors in code. The research examines ChatGPT’s debugging capabilities by evaluating its natural language processing, knowledge representation, and pattern recognition skills. The text compares ChatGPT’s performance with conventional debugging tools through real-world examples and case studies. The findings suggest that ChatGPT can effectively assist in debugging by automatically identifying and correcting errors, predicting issues early in the development phase, and clarifying the underlying causes of bugs. However, the system’s effectiveness depends on the quality of its training data and architecture. While ChatGPT has the potential to be a valuable tool in the debugging process, it is essential to combine it with traditional debugging methods to ensure accuracy and reliability. Further research is needed to enhance ChatGPT’s capabilities and evaluate its effectiveness in real-world scenarios.
References
W. E. Wong, X. Li, P. A. Laplante, and M. Siok, “Be More Familiar with Our Enemies and Pave the Way Forward: A Review of the Roles Bugs Played in Software Failures,” J. Syst. Softw., vol. 133, pp. 68-94, 2017. [Online]. Available: https://doi.org/10.1016/j.jss.2017.06.069
D. R. E. Cotton, P. A. Cotton, and J. R. Shipway, “The Benefits and Challenges of ChatGPT: An Overview,” Front. Comput. Intell. Syst., vol. 2, no. 2, pp. 81-83, 2022. [Online]. Available: https://www.researchgate.net/publication/367106604_The_Benefits_and_Challenges_of_ChatGPT_An_Overview
Y. Xu, T. Zhang, and M. Li, “AI-Driven Automated Bug Detection: A Comparative Study,” J. Softw. Eng., vol. 15, no. 2, pp. 85-98, 2023.
R. Sharma and V. Patel, “Enhancing Software Development with AI-Integrated Debugging Tools,” Int. J. Comput. Sci., vol. 22, no. 1, pp. 123-137, 2023.
J. Liu and H. Wang, “Context-Aware NLP in AI-Driven Debugging: A New Approach to Software Quality,” J. Artif. Intell. Res., vol. 28, no. 1, pp. 45-61, 2024.
J. Deng and Y. Lin, “The Benefits and Challenges of ChatGPT: An Overview,” Front. Comput. Intell. Syst., vol. 2, no. 2, pp. 81-83, 2023. [Online]. Available: https://doi.org/10.54097/fcis.v2i2.4465
M. Aljanabi, “ChatGPT: Future Directions and Open Possibilities,” Mesopotamian J. Cybersecurity, pp. 16-17, 2023. [Online]. Available: https://doi.org/10.58496/MJCS/2023/003
D. Sobania, M. Briesch, and C. Hanna, “An Analysis of the Automatic Bug Fixing Performance of ChatGPT,” Preprint, pp. 1-8, 2023. [Online]. Available: https://arxiv.org/pdf/2301.08653
J. H. Choi, K. E. Hickman, and A. B. Monahan, “A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivity,” Preprint, pp. 1-16, 2022. [Online]. Available: https://www.researchgate.net/publication/368361643_A_Multitask_Multilingual_Multimodal_Evaluation_of_ChatGPT_on_Reasoning_Hallucination_and_Interactivity
S. Cahyawijaya, N. Lee, W. Dai, D. Su, and B. Wilie, “A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivity,” Comput. Lang., vol. 4, pp. 1-45, 2023. [Online]. Available: https://arxiv.org/pdf/2302.04023
S. Frieder et al., “Mathematical Capabilities of ChatGPT,” in 37th Conf. Neural Inf. Process. Syst. (NeurIPS 2023) Track on Datasets and Benchmarks, pp. 1-46, 2023. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2023/file/58168e8a92994655d6da3939e7cc0918-Paper-Datasets_and_Benchmarks.pdf
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2024 Centre for Research and Innovation
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.