Lines Matching full:pdb
3 :mod:`pdb` --- The Python Debugger
6 .. module:: pdb
9 **Source code:** :source:`Lib/pdb.py`
15 The module :mod:`pdb` defines an interactive source code debugger for Python
22 single: Pdb (class in pdb)
26 The debugger is extensible -- it is actually defined as the class :class:`Pdb`.
30 The debugger's prompt is ``(Pdb)``. Typical usage to run a program under control
33 >>> import pdb
35 >>> pdb.run('mymodule.test()')
37 (Pdb) continue
39 (Pdb) continue
42 (Pdb)
49 :file:`pdb.py` can also be invoked as a script to debug other scripts. For
52 python3 -m pdb myscript.py
54 When invoked as a script, pdb will automatically enter post-mortem debugging if
56 after normal exit of the program), pdb will restart the program. Automatic
57 restarting preserves pdb's state (such as breakpoints) and in most cases is more
61 :file:`pdb.py` now accepts a ``-c`` option that executes commands as if given
65 :file:`pdb.py` now accepts a ``-m`` option that execute modules similar to the way
73 import pdb; pdb.set_trace()
81 instead of ``import pdb; pdb.set_trace()``.
85 >>> import pdb
95 >>> pdb.pm()
98 (Pdb)
157 :class:`Pdb` class and calling the method of the same name. If you want to
160 .. class:: Pdb(completekey='tab', stdin=None, stdout=None, skip=None, \
163 :class:`Pdb` is the debugger class.
172 By default, Pdb sets a handler for the SIGINT signal (which is sent when the
175 want Pdb not to touch the SIGINT handler, set *nosigint* to true.
177 The *readrc* argument defaults to true and controls whether Pdb will load
182 import pdb; pdb.Pdb(skip=['django.*']).set_trace()
184 .. audit-event:: pdb.Pdb "" pdb.Pdb
191 Pdb.
258 argument, print help about that command. ``help pdb`` displays the full
259 documentation (the docstring of the :mod:`pdb` module). Since the *command*
336 (Pdb) commands 1
339 (Pdb)
494 the pdb prompt. Note that internal pdb commands *can* be overridden by
519 (Pdb) global list_options; list_options = ['-l']
520 (Pdb)