Project Type: Generative AI – Code Debugger Demo
Purpose: Language-agnostic code correction and explanation tool, powered by OpenAI API
GENAI_P2_CODEDEBUGGER is a versatile debugging assistant that helps identify and fix errors in any programming language. Simply paste in a snippet of incorrect code, and the AI returns both the corrected version and a detailed explanation of the errors.
Designed to support:
- Junior developers and interns learning coding best practices
- Language-agnostic error debugging across all major programming languages
- Educational use cases with immersive, interpretive corrections
- Potential for commercial deployment via Azure integration and payment systems
- Clone the repository
git clone <repo-url> cd GENAI_P2_CODEDEBUGGER
- Install dependencies
pip install -r requirements.txt
- Set your OpenAI API key
export OPENAI_API_KEY="sk-..."
- Start the application
streamlit run app.py # or flask run, depending on implementation - Use the UI
Paste the incorrect code snippet, Click Debug Code, and receive the corrected code + explanation.
. ├── app.py # Main Streamlit or Flask code ├── requirements.txt # Python dependencies ├── config.py # Handles OpenAI API key securely ├── utils.py # Helper functions for debugging logic ├── templates/ # Web templates (Flask) or static assets └── README.md # This documentation
- Language-agnostic: Works across all major programming languages (Python, Java, C++, JavaScript, etc.)
- Educational: Explains both the code fix and reasoning, aiding learning and understanding
- Scalable: Easily deployable on Azure or other cloud services; supports secure API handling and monetization
- Cloud Deployment & Billing: Integrate with Azure Functions + payment gateways for SaaS use
- IDE Extensions: Build plug-ins for VSCode, PyCharm, and other editors
- Collaboration Features: Enable multi-user support, code history, and team collaboration
- Language-Specific Enhancements: Add linting rules and style checks for popular languages
This tool is provided for educational and demonstration purposes only. Due to reliance on AI, corrections may not always be fully accurate—manual review is recommended before using in production environments.
Developer: [Tejas Desai] LinkedIn: [https://www.linkedin.com/in/tejasddesaiindia/]
Released under the MIT License
