When running python on the command line
$ python hoge.py -m pdb
If you add "-m pdb" like this, it will be executed in debug mode. (I recently learned that this alone is very convenient)
When you want to set a breakpoint like Eclipse,
to hoge.py
python
assert False
Just insert and run in debug mode.
It responds to assert False and stops there, so you can do whatever you want.
It ’s short, but that ’s it!
Recommended Posts