summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2016-09-10 05:21:17 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2016-09-10 05:21:17 (GMT)
commit2eb6eca3e5118009b6b74b444d73aa377fb44098 (patch)
tree08a4aff5885240865631bbac448692e79e7218b7 /Doc
parenta1fd0789ed8ba174062d6fe5e55fd8d008055bd2 (diff)
downloadcpython-2eb6eca3e5118009b6b74b444d73aa377fb44098.zip
cpython-2eb6eca3e5118009b6b74b444d73aa377fb44098.tar.gz
cpython-2eb6eca3e5118009b6b74b444d73aa377fb44098.tar.bz2
Issue #18401: pdb tests don't read ~/.pdbrc anymore
Patch by Martin Matusiak and Sam Kimbrel.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/pdb.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index d77de2e..4b912f7 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -144,7 +144,7 @@ The ``run*`` functions and :func:`set_trace` are aliases for instantiating the
access further features, you have to do this yourself:
.. class:: Pdb(completekey='tab', stdin=None, stdout=None, skip=None, \
- nosigint=False)
+ nosigint=False, readrc=True)
:class:`Pdb` is the debugger class.
@@ -160,6 +160,9 @@ access further features, you have to do this yourself:
This allows you to break into the debugger again by pressing :kbd:`Ctrl-C`. If you
want Pdb not to touch the SIGINT handler, set *nosigint* to true.
+ The *readrc* argument defaults to True and controls whether Pdb will load
+ .pdbrc files from the filesystem.
+
Example call to enable tracing with *skip*::
import pdb; pdb.Pdb(skip=['django.*']).set_trace()
@@ -171,6 +174,9 @@ access further features, you have to do this yourself:
The *nosigint* argument. Previously, a SIGINT handler was never set by
Pdb.
+ .. versionadded:: 3.5
+ The *readrc* argument.
+
.. method:: run(statement, globals=None, locals=None)
runeval(expression, globals=None, locals=None)
runcall(function, *args, **kwds)