X Tutup
Skip to content

Commit 349a1e7

Browse files
committed
sphinx: Document bpdb.
Thanks to anonymous for the text. Closes: bpython#169
1 parent 4613f39 commit 349a1e7

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

doc/sphinx/source/bpaste.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. _authors:
1+
.. _bpaste:
22

33
bpaste
44
======

doc/sphinx/source/bpdb.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.. _bpdb:
2+
3+
bpdb
4+
====
5+
6+
To enable bpython support within pdb, start pdb with the following code:
7+
8+
.. code-block:: python
9+
10+
import bpdb
11+
bpdb.set_trace()
12+
13+
This will drop you into bpdb instead of pdb, which works exactly like pdb except
14+
that you can additionally start bpython at the current stack frame by issuing
15+
the command `Bpython` or `B`.
16+
17+
You can exit bpython with `^D` to return to bpdb.

doc/sphinx/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ Contents:
2626
sourcecode
2727
bpaste
2828
tips
29+
bpdb

0 commit comments

Comments
 (0)
X Tutup