NLP Code Debugger is an intelligent, AI-powered debugging assistant that helps you analyze and fix programming errors quickly. Built with Streamlit and OpenAI's GPT models, this tool leverages advanced NLP to provide actionable solutions, best practices, and learning resources for your coding bugs.
- 🐍 Supports multiple languages: Python, Java, JavaScript, PHP
- 🤖 AI-driven code and error analysis powered by GPT-3
- 🛠️ Detailed error diagnostics and common causes
- ⚡ Quick fixes and best practice recommendations
- 📚 Curated learning resources for further study
- 🖥️ Intuitive Streamlit-based web interface with light/dark themes
- 📝 Paste your code and error message to get instant help
![screenshot or gif here if available]
-
Clone the repo:
git clone https://github.com/Youssefzrr/nlp_code_debugger.git cd nlp_code_debugger -
Install the requirements:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
-
Open your browser at the provided local URL.
-
Paste your code and error message, select your language, and click "Analyze & Debug".
- Python 3.7+
- OpenAI API Key (for GPT-3 integration)
- openai
- streamlit
- pygments
- javalang
- esprima
- phply
(Install with pip install -r requirements.txt)
.
├── app.py # Main Streamlit app
├── requirements.txt # Python dependencies
├── data/ # Data files (if any)
├── src/ # Source code (solution generator, parsers, etc.)
├── templates/ # Template files
├── tests/ # Unit tests
- Paste your code and error message.
- Select the programming language or enable auto-detection.
- The AI analyzes the error and provides:
- Error type, severity, and location
- Common causes
- AI-generated analysis and solution
- Quick fixes and best practices
- Learning resources
Contributions are welcome! Please submit a pull request or open an issue to discuss improvements.
MIT (or specify your license here)
Maintainer: Youssefzrr