Skip to content

Commit 88635c2

Browse files
Add docs
1 parent 76a633e commit 88635c2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Doc/library/pdb.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ The ``run*`` functions and :func:`set_trace` are aliases for instantiating the
192192
access further features, you have to do this yourself:
193193

194194
.. class:: Pdb(completekey='tab', stdin=None, stdout=None, skip=None, \
195-
nosigint=False, readrc=True)
195+
nosigint=False, readrc=True, commands=None)
196196

197197
:class:`Pdb` is the debugger class.
198198

@@ -211,6 +211,9 @@ access further features, you have to do this yourself:
211211
The *readrc* argument defaults to true and controls whether Pdb will load
212212
.pdbrc files from the filesystem.
213213

214+
The *commands* argument, if given, would be a list of commands to execute
215+
when the debugger starts. It has similar effects to the :file:`.pdbrc` file.
216+
214217
Example call to enable tracing with *skip*::
215218

216219
import pdb; pdb.Pdb(skip=['django.*']).set_trace()
@@ -227,6 +230,9 @@ access further features, you have to do this yourself:
227230
.. versionchanged:: 3.6
228231
The *readrc* argument.
229232

233+
.. versionadded:: 3.14
234+
The *commands* argument.
235+
230236
.. method:: run(statement, globals=None, locals=None)
231237
runeval(expression, globals=None, locals=None)
232238
runcall(function, *args, **kwds)

0 commit comments

Comments
 (0)