Python pdb on python script run as package
问题 I have a python program that I usually run as a part of a package: python -m mymod.client in order to deal with relative imports inside "mymod/client.py." How do I run this with pdb - the python debugger. The following does not work: python -m pdb mymod.client It yields the error: Error: mymod.client does not exist EDIT #1 (to address possible duplicity of question) My question isn't really about running two modules simultaneously python, rather it is about how to use pdb on a python script