Try:
python -m pdb test.py arg1 arg2
Running python -m pdb
runs pdb
as a script. If test.py
is somewhere in your path rather than your current working directory, this can be a helpful substitute:
python -m pdb "$(which test.py)" arg1 arg2
REF
https://www.cnblogs.com/xiaohai2003ly/p/8529472.html
https://www.cnblogs.com/bonelee/p/11344053.html