I am having a hell of a time trying to debug my code.
A while back my usual import pdb; pdb.set_trace() break points stopped working and my python code exited without printing any errors or hitting any break points. Before you ask, there is no early exit path, or any way it would be doing that unexpectedly.
I am admittedly using several try: catch: blocks and asssertion statements.
After a bit of googling I decided to try ipdb instead. I wrapped the high level call in a try: except: block:
try:
my_main(arg1)
except Exception as e:
ipdb.set_trace()
print(e)
print(traceback.print_stack())
That worked, I am now hitting the break point however I can't get any information out of it.
As the attached image shows, print(e) prints nothing and the traceback shows a bunch of calls in bdb.py and pdb.py and doesn't show anything from my code.
However just e in the console shows an AssertionError. Which seems to suggest the code is failing on an assertion.
Any idea what is causing this and how I might be able to narrow down which Assert is causing this issue?
Appreciate any help.