'''This sets a pdb trace then imports buggy.py. By traversing the traceback with pdb, you can print the value of whatKnightsSay to see that pdb suffers from the same defect as the inspectStack method. Here's my example of this: $ python triggerPdb.py > /home/n/sandbox/python-module-binding-bug/triggerPdb.py(3)() -> import buggy (Pdb) n We are the Knights who say: 'Ni!' TypeError: "unsupported operand type(s) for +: 'int' and 'str'" > /home/n/sandbox/python-module-binding-bug/triggerPdb.py(3)() -> import buggy (Pdb) p whatKnightsSay *** NameError: NameError("name 'whatKnightsSay' is not defined",) (Pdb) down > /home/n/sandbox/python-module-binding-bug/buggy.py(3)() -> 42 + whatKnightsSay (Pdb) p whatKnightsSay None ''' import pdb pdb.set_trace() import buggy