Skip to content

Docs CSC now features an automatic Finnish translation. Click here for more information.

Warning!

Puhti and Mahti are being decommissioned in stages, and their storage areas will become fully unavailable from 15 October 2026. Clean up unnecessary files and move any data you need to keep by 31 August 2026. See the Roihu data migration guide for instructions on transferring your data to Roihu.

Puhti scratch is very full: keep only active data there and move or delete everything else. No new Puhti scratch quota will be granted.

pdb: Python debugger

Available

  • Mahti: Any Python version
  • Puhti: Any Python version
  • Roihu-CPU: Any Python version
  • Roihu-GPU: Any Python version

License

Usage is possible for both academic and commercial purposes.

Usage

pdb is an in-built Python debugger that supports breakpoints, stepping through the source line by line, inspection of stack frames, source code listing, etc.

In order to use the tool, launch first an interactive session and start then your Python program under the debugger:

python -m pdb myscript.py

Running pdb will open the prompt which supports various commands such as where, down, up, up, break, step, next, jump, list.