summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.8] bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) (#24320)Andrey Bienkowski2021-01-251-1/+2
|
* bpo-41609: Fix output of pdb's whatis command for instance methods ↵Miss Islington (bot)2020-08-271-6/+6
| | | | | | | (GH-21935) (#21976) (cherry picked from commit 022bc7572f061e1d1132a4db9d085b29707701e7) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* [3.8] bpo-41043: Escape literal part of the path for glob(). (GH-20994). ↵Serhiy Storchaka2020-07-021-1/+1
| | | | | (GH-21277) (cherry picked from commit 935586845815f5b4c7814794413f6a812d4bd45f)
* bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)Miss Islington (bot)2020-06-211-1/+2
| | | | | (cherry picked from commit 19fcffa92773e008e4f5efb80047420a0cfafeec) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)Miss Islington (bot)2019-11-121-1/+2
| | | | | | Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com> (cherry picked from commit d593881505c1f4acfd17f41312b27cc898451816) Co-authored-by: jsnklln <jsnklln@gmail.com>
* closes bpo-37803: pdb: fix handling of options (--help / --version) (GH-15193)Miss Islington (bot)2019-09-121-1/+1
| | | | | | | | | The "--" should not be included with long options passed to getopt.getopt. Fixes https://bugs.python.org/issue37803 (cherry picked from commit 855df7f273c3988c72f01e51ba57091887ec38b2) Co-authored-by: Daniel Hahler <github@thequod.de>
* bpo-36250: ignore ValueError from signal in non-main thread (GH-12251)Miss Islington (bot)2019-09-091-2/+6
| | | | | | Authored-By: blueyed <github@thequod.de> (cherry picked from commit 8d64bfafdffd9f866bb6ac2e5b4c4bdfcb16aea0) Co-authored-by: Daniel Hahler <github@thequod.de>
* bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)Miss Islington (bot)2019-08-021-8/+6
| | | | | | | | | | | | | | | | | | Previously pdb checked the $HOME environmental variable to find the user .pdbrc. If $HOME is not set, the user .pdbrc would not be found. Change pdb to use `os.path.expanduser('~')` to determine the user's home directory. Thus, if $HOME is not set (as in tox or on Windows), os.path.expanduser('~') falls back on other techniques for locating the user's home directory. This follows pip's implementation for loading .piprc. Co-authored-by: Dan Lidral-Porter <dlp@aperiodic.org> (cherry picked from commit 7ea9a85f132b32347fcbd2cbe1b553a2e9890b56) Co-authored-by: Timothy Hopper <tdhopper@users.noreply.github.com>
* bpo-37363: Add audit events for a range of modules (GH-14301)Miss Islington (bot)2019-06-241-0/+1
| | | | | (cherry picked from commit 60419a7e96577cf783b3b45bf3984f9fb0d7ddff) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-37122: Make co->co_argcount represent the total number of positonal ↵Pablo Galindo2019-06-011-1/+1
| | | | arguments in the code object (GH-13726)
* bpo-36969: Make PDB args command display positional only arguments (GH-13459)Rémi Lapeyre2019-05-241-1/+1
|
* bpo-36969: Make PDB args command display keyword only arguments (GH-13452)Rémi Lapeyre2019-05-201-3/+3
|
* bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553)Serhiy Storchaka2019-03-271-4/+2
|
* bpo-35931: Gracefully handle any exception in pdb debug command (GH-12103)Daniel Hahler2019-03-121-7/+5
| | | | This is relevant for `debug doesnotexist()`, which would crash with a NameError otherwise.
* bpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)Daniel Hahler2019-02-151-1/+7
| | | | | | | | Previously, `debug print(` would cause the interpreter to exit on a SyntaxError whereas `print(` would properly display the error and return to the pdb prompt. This patch fixes this by pre-compiling the code before passing it to `Pdb.run`. https://bugs.python.org/issue35931
* bpo-32691: Use mod_spec.parent when running modules with pdb (GH-5474)Mario Corchero2018-02-031-1/+1
| | | | Previously the module name was used, which broke relative imports when pdb was run against a plain module or submodule.
* bpo-32206: Update pdb usage to include new module option (GH-5111)Mario Corchero2018-01-281-2/+4
|
* bpo-32206: Pdb can now run modules (GH-4752)Mario Corchero2018-01-061-4/+29
| | | | | | | | | | | 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.
* bpo-31389 Add an optional `header` argument to pdb.set_trace() (#3438)Barry Warsaw2017-09-221-2/+5
| | | | | | | | | | * Give pdb.set_trace() an optional `header` argument * What's new. * Give pdb.set_trace() an optional `header` argument * What's new.
* Issue #20766: Merge with 3.5.Xavier de Gaye2016-10-121-3/+7
|\
| * Issue #20766: Fix references leaked by pdb in the handling of SIGINT handlers.Xavier de Gaye2016-10-121-3/+7
| |
* | Issue #18401: pdb tests don't read ~/.pdbrc anymoreŁukasz Langa2016-09-101-10/+12
|/ | | | Patch by Martin Matusiak and Sam Kimbrel.
* Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
|
* Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-1/+1
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* merge from 3.4Terry Jan Reedy2015-09-051-0/+3
|\
| * Issue #16180: Exit pdb if file has syntax error, instead of trapping userTerry Jan Reedy2015-09-051-0/+3
| | | | | | | | in an infinite loop. Patch by Xavier de Gaye.
* | Issue #22186: Fix typos in Lib/.Berker Peksag2014-10-191-1/+1
|\ \ | |/ | | | | Patch by Févry Thibault.
| * Issue #22186: Fix typos in Lib/.Berker Peksag2014-10-191-1/+1
| | | | | | | | Patch by Févry Thibault.
* | Issue #22032: __qualname__ instead of __name__ is now always used to formatSerhiy Storchaka2014-07-221-1/+1
|/ | | | fully qualified class names of Python implemented classes.
* Issue #19076: Don't pass the redundant 'file' argument to self.error().Berker Peksag2014-07-121-1/+1
|
* Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier ↵Guido van Rossum2013-11-211-2/+10
| | | | de Gaye.
* merge with 3.3Georg Brandl2013-10-141-0/+4
|\
| * Closes #17154: error out gracefully on "ignore" or "condition" without argument.Georg Brandl2013-10-141-0/+4
| |
* | pdb: modernize find_function() and add tests for it.Georg Brandl2013-10-131-12/+5
| | | | | | | | Closes #18714.
* | 18764: remove the problematic 'print' alias for the PDB 'p' command.R David Murray2013-10-101-5/+3
| | | | | | | | | | | | So that it no longer shadows the print function. Patch by Connor Osborn, doc and test changes by R. David Murray.
* | #18705: merge with 3.3.Ezio Melotti2013-08-171-2/+2
|\ \ | |/
| * #18705: fix a number of typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-2/+2
| |
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | | | | | ModuleNotFoundError.
* | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-5/+5
|/
* Merge issue #13120: Allow to call pdb.set_trace() from thread.Andrew Svetlov2012-12-041-2/+9
|\ | | | | | | Patch by Ilya Sandler.
| * Issue #13120: Allow to call pdb.set_trace() from thread.Andrew Svetlov2012-12-041-2/+9
| | | | | | | | Patch by Ilya Sandler.
* | Close #14210: add command argument completion to pdb: complete file names, ↵Georg Brandl2012-03-101-0/+95
|/ | | | global/local variables, aliases
* Add display/undisplay pdb commands.Georg Brandl2010-12-041-2/+66
|
* #7245: Add a SIGINT handler on continue in pdb that allows to break a ↵Georg Brandl2010-12-041-5/+32
| | | | program again by pressing Ctrl-C.
* Add the "interact" pdb command from pdb++.Georg Brandl2010-12-041-4/+15
|
* Use booleans where applicable.Georg Brandl2010-11-291-10/+10
|
* Remove the comment used while testing.Senthil Kumaran2010-11-291-1/+0
|
* Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.Senthil Kumaran2010-11-291-1/+2
| | | | | Handle multiple breakpoints at same line. Update docs/test. Patch by Xavier de Gaye.
* Remove unused imports.Georg Brandl2010-10-141-3/+1
|