Skip to content

Commit f48a1c6

Browse files
Add docs
1 parent 2a9887f commit f48a1c6

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Doc/library/pdb.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,13 @@ can be overridden by the local file.
699699
:pdbcmd:`interact` directs its output to the debugger's
700700
output channel rather than :data:`sys.stderr`.
701701

702+
.. pdbcommand:: attach process
703+
704+
Attach to a running process. The *process* argument could be either a
705+
:class:`subprocess.Popen`, :class:`multiprocessing.Process` or a process ID.
706+
707+
.. versionadded:: 3.15
708+
702709
.. _debugger-aliases:
703710

704711
.. pdbcommand:: alias [name [command]]

Doc/whatsnew/3.15.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ New modules
8989
Improved modules
9090
================
9191

92+
pdb
93+
---
94+
95+
* :pdbcommand:`attach` command has been added to attach to a running process.
96+
(Contributed by Tian Gao in :gh:`133954`.)
97+
9298
ssl
9399
---
94100

0 commit comments

Comments
 (0)