My Python library just changed it\'s main module name from foo.bar to foobar. For backward compat, foo.bar still exists, but importing
foo.bar
foobar
edit foo.bar module, add following code:
import pdb pdb.set_trace()
when foo.bar be imported, program will stop at pdb.set_trace() in pdb mode, where you can debug your code. For example, you can use "w" command to print the full calling stack.