From aa3d310aa257f0ef0a8636272883c3c4e6855a1c Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 3 Dec 2023 09:43:06 -0600 Subject: Moving files --- topics/python/using-pudb.gmi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 topics/python/using-pudb.gmi (limited to 'topics/python/using-pudb.gmi') diff --git a/topics/python/using-pudb.gmi b/topics/python/using-pudb.gmi new file mode 100644 index 0000000..7cac743 --- /dev/null +++ b/topics/python/using-pudb.gmi @@ -0,0 +1,26 @@ +# Using pudb + +## Setting Breakpoints + +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. + +## pdb and pudb API similarity + +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 + +## Tags + +* type: documentation +* keywords: pudb -- cgit v1.2.3