File: bpdb.rst

package info (click to toggle)
bpython 0.26-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,144 kB
  • sloc: python: 11,682; xml: 53; makefile: 5; sh: 2
file content (17 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.. _bpdb:

bpdb
====

To enable bpython support within pdb, start pdb with the following code:

.. code-block:: python

    import bpdb
    bpdb.set_trace()

This will drop you into bpdb instead of pdb, which works exactly like pdb except
that you can additionally start bpython at the current stack frame by issuing
the command `Bpython` or `B`.

You can exit bpython with `^d` to return to bpdb.