There is a high level logic error deep within my Python script, and pdb
doesn\'t help to debug it. Is there any other way to see what is being executed after I run
No, there's no magic formula.
My best suggestion is to get a good IDE with a debugger, like JetBrains' PyCharm, and step through your code to see where you went wrong.
Most of the time these situations happen because you make assumptions about behavior that aren't true. Get a debugger, step through, and check your assumptions.