Wei-Hsiang (Matt) Wang
103a0470e3
gh-123492: Remove unnecessary `:func:` parentheses ( #123493 )
2024-08-30 14:34:09 +03:00
Tian Gao
ed60ab5fab
gh-119824: Print stack entry when user input is needed ( #119882 )
...
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2024-06-14 11:25:23 -07:00
David Lowry-Duda
5bdc87b885
gh-120178: Documentation typo corrections ( #120179 )
2024-06-06 14:35:24 -07:00
Tian Gao
3dfa364cf2
gh-119580: Improve version added section for convenience variable ( #119583 )
2024-05-27 17:54:23 +00:00
Alyssa Coghlan
e870c852c0
gh-74929: PEP 667 general docs update (gh-119201)
...
* expand on What's New entry for PEP 667 (including porting notes)
* define 'optimized scope' as a glossary term
* cover comprehensions and generator expressions in locals() docs
* review all mentions of "locals" in documentation (updating if needed)
* review all mentions of "f_locals" in documentation (updating if needed)
2024-05-21 03:32:15 +00:00
Tian Gao
5a0022a1d7
GH-111744: Make breakpoint() enter the debugger immediately (GH-118579)
2024-05-05 07:05:01 -07:00
Tian Gao
d7ac427a79
gh-117618: Make package.module searchable for breakpoints and clean up docs ( #117619 )
2024-04-30 18:18:01 +00:00
Tian Gao
a50cf6c3d7
gh-90095: Ignore empty lines and comments in `.pdbrc` ( #116834 )
2024-03-15 09:36:04 +00:00
Serhiy Storchaka
808a77612f
gh-115664: Fix ordering of more versionadded and versionchanged directives (GH-116298)
2024-03-07 10:05:03 +02:00
Erlend E. Aasland
1d7bddd961
Docs: align usage of versionadded/versionchanged with recommended practice ( #114409 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2024-01-22 21:40:26 +00:00
Tian Gao
3d712a9f4c
gh-102980: Redirect output of pdb's `interact` command, add tests and improve docs ( #111194 )
2023-12-07 11:19:33 +00:00
Tian Gao
853b4b549d
gh-111719: Add extra check for alias command ( #111720 )
2023-11-04 23:05:22 +00:00
Tian Gao
6304d983a0
gh-108463: Make expressions/statements work as expected in pdb ( #108464 )
2023-09-04 21:44:40 +00:00
Matthias Bussonnier
f75cefd402
gh-106670: Allow Pdb to move between chained exceptions ( #106676 )
2023-08-28 18:31:03 +00:00
James Gerity
0449ffe3a4
gh-104301: Allow leading whitespace in disambiguated pdb statements ( #104342 )
2023-05-11 18:12:02 +01:00
Adam Turner
d0122372f2
GH-97950: Use new-style index directive ('module') ( #103996 )
...
* Use new-style index directive ('module') - C API
* Use new-style index directive ('module') - Library
* Use new-style index directive ('module') - Reference
* Use new-style index directive ('module') - Tutorial
* Uncomment module removal in pairindextypes
* Use new-style index directive ('module') - C API
* Use new-style index directive ('module') - Library
* Use new-style index directive ('module') - Reference
2023-05-04 10:17:12 +02:00
Tian Gao
0fc58c66ba
gh-103693: Add convenience variable feature to `pdb` ( #103694 )
2023-05-03 15:04:50 +01:00
Tian Gao
449bf2a76b
gh-103237: Polish pdb docs ( #103238 )
2023-04-11 23:18:34 -07:00
Tian Gao
2f41a009b7
gh-103143: Polish pdb help messages and doc strings (GH-103144)
...
* Made all the command part of the docstring match the official documentation
* Always have a space between the command and the description in docstring
* Added a helper function to format the help message
Before:
```
(Pdb) h a
a(rgs)
Print the argument list of the current function.
(Pdb) h commands
commands [bpnumber]
(com) ...
(com) end
(Pdb)
...
(Pdb) h interact
interact
Start an interactive interpreter whose global namespace
contains all the (global and local) names found in the current scope.
```
After
```
(Pdb) h a
Usage: a(rgs)
Print the argument list of the current function.
(Pdb) h commands
Usage: (Pdb) commands [bpnumber]
(com) ...
(com) end
(Pdb)
...
(Pdb) h interact
Usage: interact
Start an interactive interpreter whose global namespace
contains all the (global and local) names found in the current scope.
```
Automerge-Triggered-By: GH:brandtbucher
2023-04-11 15:40:30 -07:00
gaogaotiantian
027223db96
Update pdb docs for arguments ( #102965 )
2023-03-25 14:31:45 -07:00
gaogaotiantian
e0c63b7267
Docs: improve accuracy of pdb alias example ( #102892 )
2023-03-22 12:34:52 +01:00
Paul Watson
80abd62647
gh-102354: change python3 to python in docs examples ( #102696 )
2023-03-14 12:40:12 -06:00
Furkan Onder
cef9de62b8
GH-56426: Add cross-reference to the documentation for faulthandler, traceback, and pdb. ( #101157 )
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2023-02-04 09:19:29 +05:30
Godefroid Chapelle
2888b1107f
pdb docs: workaround for double semicolon in strings ( #17011 )
...
see https://github.com/gotcha/ipdb/issues/172
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-05-08 16:20:42 -07:00
Hugo van Kemenade
6d07a9fb7c
bpo-28546: [doc] Clarify setting pdb breakpoints (GH-30360)
...
Co-authored-by: Ian Kelling <ian@iankelling.org>
2022-01-07 19:41:23 +00:00
Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
58248d9437
bpo-41137: Use utf-8 encoding while reading .pdbrc files (GH-21263)
2021-07-08 16:16:08 +09:00
Arisaka97
cf18c9e9d4
bpo-40773: Fix rendering for 'retval' on the pdb page (GH-21081)
...
Automerge-Triggered-By: @merwok
2020-06-24 14:50:49 -07:00
Dave Nguyen
9391f6c3ef
bpo-36277: Add document for pdb debug and retval commands (GH-12872)
...
https://bugs.python.org/issue36277
Automerge-Triggered-By: @csabella
2019-11-20 17:49:15 -08:00
Brandt Bucher
a0ed99bca8
bpo-38438: Simplify argparse "star nargs" usage. (GH-17106)
2019-11-11 12:47:48 -08:00
Steve Dower
44f91c388a
bpo-37390: Add audit event table to documentations (GH-14406)
...
Also updates some (unreleased) event names to be consistent with the others.
2019-06-27 10:47:59 -07:00
Steve Dower
60419a7e96
bpo-37363: Add audit events for a range of modules (GH-14301)
2019-06-24 08:42:54 -07:00
João Matos
cf991e653a
bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)
2019-01-30 09:23:39 -08:00
Julien Palard
7943c5e8b5
Doc: Remove superfluous markup. (GH-8112)
...
The line is speaking of a list of commands, not the list command.
2018-07-06 11:15:13 +02:00
Stéphane Wirtel
67adb31a41
bpo-32724: Fix references to commands in Doc/pdb.rst (GH-5444)
...
Some commands are specified in the documentation, but there is no direct
references.
2018-01-30 11:34:33 +02:00
Mario Corchero
9f1e5f1b7f
bpo-32206: Pdb can now run modules (GH-4752)
...
Add a new argument "-m" to the pdb module to allow
users to run `python -m pdb -m my_module_name`.
This relies on private APIs in the runpy module to work,
but we can get away with that since they're both part of
the standard library and can be updated together if
the runpy internals get refactored.
2018-01-06 17:53:05 +10:00
Berker Peksag
12d60560ac
Add version{changed,added} markers and make minor style changes (GH-4273)
2017-11-04 15:17:56 +03:00
Barry Warsaw
35425d638c
bpo-31389 Add an optional `header` argument to pdb.set_trace() ( #3438 )
...
* Give pdb.set_trace() an optional `header` argument
* What's new.
* Give pdb.set_trace() an optional `header` argument
* What's new.
2017-09-22 12:29:42 -04:00
UltimateCoder
8856940cf2
bpo-28315: Improve code examples in docs (GH-1372)
...
Replace
File "<stdin>", line 1, in ?
with
File "<stdin>", line 1, in <module>
2017-05-03 09:46:45 -07:00
Martin Panter
99b6f28351
Merge doc fixups from 3.5
2016-11-21 04:22:22 +00:00
Martin Panter
357ed2e577
Change double hyphens (en dashes) to em (longer) dashes
2016-11-21 00:15:20 +00:00
Berker Peksag
2d7250b3be
Fix Python version in pdb.rst
2016-09-10 09:28:03 +03:00
Łukasz Langa
2eb6eca3e5
Issue #18401 : pdb tests don't read ~/.pdbrc anymore
...
Patch by Martin Matusiak and Sam Kimbrel.
2016-09-09 22:21:17 -07:00
Terry Jan Reedy
de260a6fa8
Fix misspelling
2016-08-24 17:52:57 -04:00
Martin Panter
69332c1a64
Fix spelling and grammar in documentation and code comments
2016-08-04 13:07:31 +00:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Serhiy Storchaka
0424eaf753
Marked keystrokes with the :kbd: role.
...
Fixed the case of the "Ctrl-" prefixes.
2015-09-12 17:45:25 +03:00
Benjamin Peterson
45d929dc64
add link to pdb source ( closes #22528 )
2014-09-30 16:02:06 -04:00
R David Murray
d57937656d
#18764 : p(rint) -> p in pdb docs.
...
Missed changing the doc for the command itself, patch for that also by Connor
Osborn.
2013-10-10 17:33:43 -04:00
R David Murray
78d692f98e
18764: remove the problematic 'print' alias for the PDB 'p' command.
...
So that it no longer shadows the print function.
Patch by Connor Osborn, doc and test changes by R. David Murray.
2013-10-10 17:23:26 -04:00
Georg Brandl
4c7c3c58be
Close #14210 : add command argument completion to pdb: complete file names, global/local variables, aliases
2012-03-10 22:36:48 +01:00