A Python-based educational assistant that helps beginners understand and fix their coding errors.
The Interactive Debugging Tutor is a Python program that analyzes code written by users, detects common syntax and logic errors, and provides clear, friendly explanations with suggestions for how to fix them.
Requirements
- Python 3.11+
- Libraries:
pip install colorama
pip install flask
Clone the Project
git clone https://github.com/Aphan9561/interactive-debugger.git
Run in terminal
python tutor.py
To run web app
python -m interface.app
So far, you can type your code into the terminal after running the file.
Example:
>>> x = [1,2,3]
>>> print(x[3])
Output:
Traceback (most recent call last):
File "/Users/annaphan/UofC/Autumn2025/IntermedPython/interactive-debugger/analyzer/exec_safely.py", line 10, in execute_user_code
exec(code, env)
File "<string>", line 1, in <module>
IndexError: list index out of range
------------------------------------------------------------
What would you like help with?
1. Explanation and Why
2. Hint
3. Example Fix
4. Skip
>