Digital Repository

Enhancing Bug Detection in Software Code Using Generative AI Models

Show simple item record

dc.contributor.author Hewa Thanthrige, Tharushi
dc.date.accessioned 2026-04-07T03:40:02Z
dc.date.available 2026-04-07T03:40:02Z
dc.date.issued 2025
dc.identifier.citation Hewa Thanthrige, Tharushi (2025) Enhancing Bug Detection in Software Code Using Generative AI Models. BSc. Dissertation, Informatics Institute of Technology en_US
dc.identifier.issn 20201235
dc.identifier.uri http://dlib.iit.ac.lk/xmlui/handle/123456789/3112
dc.description.abstract Problem: Detecting complex software bugs, such as logical errors, performance inefficiencies, and concurrency issues, remains a significant challenge for development teams. Traditional static analysis tools struggle to capture contextual dependencies, while dynamic analysis methods often require extensive computational resources. These limitations delay bug detection, increasing development costs and technical debt. This research aims to enhance bug detection by leveraging AI-driven techniques within an integrated development environment (IDE), specifically improving generative AI’s ability to identify and address complex code dependencies. Methodology: This project introduces an AI-powered bug detection plugin designed for real-time integration with an IDE. The system follows a multi-level approach, beginning with syntax error detection and extending to logical error analysis. A hybrid backend agent orchestrator coordinates the execution of core analysis tools, including a Syntax Error Checking Tool, a Refactoring and Fix Suggestion Tool, and a Logical Error Detection Module. The plugin leverages a fine-tuned LLaMA 3.2 1B model trained on datasets such as Defects4J and QuixBugs to improve accuracy in detecting Java bugs. The implementation ensures a lightweight, configurable workflow, allowing developers to tailor error detection based on project requirements. Results: The fine-tuned model achieved an accuracy of 85.81% in bug detection, surpassing the base model’s 76.66% performance. Testing on large-scale Java projects confirmed the system’s ability to analyze complex codebases with minimal latency. The plugin effectively detects and suggests fixes for syntax and logical errors, enhancing developer productivity by providing contextual bug resolutions within the IDE. Future enhancements will focus on expanding language support, improving detection for performance-related issues, and refining the AI model for broader applicability in software debugging. en_US
dc.language.iso en en_US
dc.subject Bug Detection en_US
dc.subject Generative AI en_US
dc.subject IDE Plugin en_US
dc.subject Code Analysis en_US
dc.title Enhancing Bug Detection in Software Code Using Generative AI Models en_US
dc.type Thesis en_US


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search


Advanced Search

Browse

My Account