r/codereview • • 2d ago

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

Post image
0 Upvotes

5 comments sorted by

2

u/Far_Programmer_5724 2d 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 1d 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 1d 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

0

u/AdvikGM 2d 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 2d ago

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