An advanced AI-powered code analysis and debugging tool that helps developers identify and fix issues in their code.
- AI-Powered Analysis: Leverages Groq's advanced AI models to analyze code and provide detailed debugging information
- Multi-Language Support: Supports Python, JavaScript, Java, and C++
- Comprehensive Analysis: Provides detailed breakdown of errors, solutions, and fixed code
- Modern UI: Clean and professional interface for code input and analysis results
- Code Examples: Built-in examples for each supported language to demonstrate the tool
- Backend: Flask (Python)
- Frontend: HTML, CSS, JavaScript
- Code Editing: CodeMirror
- AI Models: Powered by Groq API (Llama 3 and Mistral Large)
- Syntax Highlighting: highlight.js
- Python 3.8+
- pip
- Groq API key
-
Clone this repository
git clone https://github.com/yourusername/code-debugger.git cd code-debugger
-
Create and activate a virtual environment
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Create a
.env
file in the project root and add your Groq API keyGROQ_API_KEY=your_groq_api_key_here
-
Run the application
python app.py
-
Access the application at
http://localhost:5000
- Select the AI model and programming language from the dropdown menus
- Enter or paste your code in the editor
- Click "Analyze and Debug Code"
- View the detailed analysis, including:
- Summary of issues
- Detailed breakdown of each error
- Solutions for each error
- Fixed code
- Learning points
MIT License
- Groq API for providing the AI models
- CodeMirror for the code editor
- highlight.js for syntax highlighting