← Useful Tips
Python / DataPython

python -m pdb script.py: Run a script under Python's debugger

Use python -m pdb script.py to run a script under Python's debugger. It improves repeatability and debugging in Python and data workflows.

python -m pdb script.py

Why it helps

Use python -m pdb script.py to run a script under Python's debugger. It improves repeatability and debugging in Python and data workflows.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
python -m pdb script.py: Run a script under Python's debuggerpython -m pdb script.pyrun a script under python's debuggerhow to run a script under python's debuggerPython / Data run a script under python's debugger

Related tips