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
Eli Bendersky
489f392a0e
Issue #10902 : Fix reference to run* methods
2011-01-14 08:25:03 +00:00
Georg Brandl
cbc79c76a8
Add display/undisplay pdb commands.
2010-12-04 16:21:42 +00:00
Georg Brandl
44f2b640ff
#7245 : Add a SIGINT handler on continue in pdb that allows to break a program again by pressing Ctrl-C.
2010-12-04 16:00:47 +00:00
Georg Brandl
1acb746d79
Add the "interact" pdb command from pdb++.
2010-12-04 11:20:26 +00:00
Senthil Kumaran
6f1070485f
Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
...
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.
2010-11-29 11:54:17 +00:00
Georg Brandl
b98273fff9
Re-add "debugger" label, it is used in pydoc-topics.
2010-10-29 05:24:24 +00:00
Alexander Belopolsky
f0a0d14c28
Issue #7061 : Dropped "for Tk" from turtle module title and moved its
...
doc section under frameworks. Also fixed a couple of markup issues
that affected TOC rendering.
2010-10-27 03:06:43 +00:00
Georg Brandl
0a9c3e91dc
Show the traceback line numbers as well as the current line numbers if an exception is being debugged. Courtesy of pdb++ by Antonio Cuni. Also document -> and >> markers for "list".
2010-07-30 18:46:38 +00:00
Georg Brandl
e59ca2afe3
Add "longlist" and "source" commands, ideas borrowed from pdb++ by Antonio Cuni.
2010-07-30 17:04:28 +00:00
Georg Brandl
46b9afc862
#1472251 : remove addition of "\n" to code given to pdb.run[eval](), the bug in exec() that made this necessary has been fixed. Also document that you can give code objects to run() and runeval(), and add some tests to test_pdb.
2010-07-30 09:14:20 +00:00