CodeTrace

Debug with Understanding

Repo
CodeTrace banner

About

## The problem it solves

**Problem it solves**: Debugging is hard for beginners and time-consuming for everyone. Error messages are cryptic, and many bugs, like wrong logic, produce no error at all, so people copy fixes from the internet without understanding them.

**What people can use it for**:

Students checking assignments in Python, C++, Java, or JavaScript Beginners learning why their code fails, not just how to fix it Anyone who has code that runs but gives wrong output

**How it makes things easier and safer**: **Easier**: Paste code with no error message needed. It finds likely bugs, explains them in plain English, and shows the original and corrected code side by side. Learning-focused: It suggests test cases so users can verify the problem and the fix themselves. **Safer**: It never runs the submitted code, so unknown or buggy code can’t harm the user’s computer. Python syntax errors are caught with Python’s own parser before the AI review.

## Challenges we ran into

**Making Java checking trustworthy.** javac requires the file name to match the public class, so checking arbitrary pasted code produced false errors. We chose accuracy over coverage: Java goes to the AI review, while Python (parser) and C/C++ (-fsyntax-only) keep real compiler checks.

**Analyzing code without running it.** Executing untrusted code is a security risk, so CodeTrace never runs it. We used syntax-only checks plus AI reasoning, and clearly label suggested tests as “not executed” so users don’t mistake them for verified results.

**Taming unreliable AI output.** Free models often wrap their JSON in extra text, which broke parsing. We forced JSON mode, extracted the JSON object from the response, and normalized the fields. Failures now show a clear retry message instead of crashing.

Screenshots

CodeTrace screenshot 1CodeTrace screenshot 2

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.