r/codereview • • 4d ago

Built a lightweight Flask + AI debugging helper to break down code errors — looking for feedback on my approach

Post image
0 Upvotes

6 comments sorted by

2

u/Far_Programmer_5724 4d ago

Just so I understand, the use case is

stuff={} try: print(stuff[dumb]) Except KeyError as e: print(e)

Summarizing e?

1

u/Sataric-Parsy 3d ago

A plain KeyError is pretty self explanatory, the value is probably more when a framework buries the real exception forty lines deep in a stack trace

1

u/Far_Programmer_5724 3d ago

So stuff={} try: print(stuff[dumb]) Except KeyError as e:

og_except_sentences= e.split(".") if len(og_except_sentences)>40: og_except_sentences.insert(40, "Even dumber stuff") e= ".".join(og_except_sentences) print(e)

Is that the use case

1

u/propostor 1d ago

What even is an "AI debugger".

You debug by putting breakpoints and inspecting code at pauses during its execution.

Is that what this debugger is doing? What does the AI do?

0

u/AdvikGM 4d ago

Here are the links if anyone wants to check out the implementation or test it out:

Any feedback on the UI or the prompt logic in chatbot.py is super appreciated!

0

u/AdvikGM 4d ago

Here are the links if anyone wants to check out the implementation or test it out: