Skip to content
CodeTrace

CodeTrace

Debug with Understanding

Created on 25th October 2026

•

CodeTrace

CodeTrace

Debug with Understanding

The problem CodeTrace 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.

Tracks Applied (1)

Open Track - Development

CodeTrace doesn’t belong to a single theme like healthcare or fintech. It addresses a problem every programmer faces, wh...Read More

Discussion

Builders also viewed

See more projects on Devfolio