diff options
author | Tian Gao <gaogaotiantian@hotmail.com> | 2024-05-05 14:05:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 14:05:01 (GMT) |
commit | 5a0022a1d70e4f7f781c4e8d7b43e9f5c9e2f0b4 (patch) | |
tree | 8c09eeaf89321d4ead5da8808ccdaeafeb0900f2 /Doc/library/pdb.rst | |
parent | 1511bc95c4bc95bd35599dc9c88111c9aac44c0d (diff) | |
download | cpython-5a0022a1d70e4f7f781c4e8d7b43e9f5c9e2f0b4.zip cpython-5a0022a1d70e4f7f781c4e8d7b43e9f5c9e2f0b4.tar.gz cpython-5a0022a1d70e4f7f781c4e8d7b43e9f5c9e2f0b4.tar.bz2 |
GH-111744: Make breakpoint() enter the debugger immediately (GH-118579)
Diffstat (limited to 'Doc/library/pdb.rst')
-rw-r--r-- | Doc/library/pdb.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index a640976..7a47a7d 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -62,8 +62,8 @@ running without the debugger using the :pdbcmd:`continue` command. The debugger's prompt is ``(Pdb)``, which is the indicator that you are in debug mode:: - > ...(3)double() - -> return x * 2 + > ...(2)double() + -> breakpoint() (Pdb) p x 3 (Pdb) continue @@ -164,6 +164,9 @@ slightly different way: .. versionchanged:: 3.7 The keyword-only argument *header*. + .. versionchanged:: 3.13 + :func:`set_trace` will enter the debugger immediately, rather than + on the next line of code to be executed. .. function:: post_mortem(traceback=None) |