💾 Archived View for thebird.nl › gn-gemtext-threads › topics › pudb › using-pudb.gmi captured on 2022-04-28 at 17:33:29. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-03-01)
-=-=-=-=-=-=-
You can add the following line anywhere in your code to start a pudb breakpoint:
import pudb; pudb.set_trace()
You can also press `b` in pudb to add a breakpoint with a keyboard shortcut.
The standard pdb docs should work for pudb with one small exception.
At the programming language level, PuDB displays the same interface
as Python’s built-in pdb module. Just replace pdb with pudb. (One
exception: run is called runstatement.)
https://docs.python.org/3/library/pdb.html?highlight=pdb#module-pdb