Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-104301: Allow leading whitespace in disambiguated pdb statements (#104342) | James Gerity | 2023-05-11 | 1 | -4/+7 |
| | |||||
* | gh-103693: Add convenience variable feature to `pdb` (#103694) | Tian Gao | 2023-05-03 | 1 | -0/+17 |
| | |||||
* | gh-103578: Fix pdb reading code with non-utf8 encoding (#103581) | Tian Gao | 2023-04-26 | 1 | -1/+1 |
| | | | `pdb` should use `io.open_code` to open code to avoid encoding issue. | ||||
* | gh-103143: Polish pdb help messages and doc strings (GH-103144) | Tian Gao | 2023-04-11 | 1 | -8/+59 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | gh-102799: use `sys.exception()` instead of `sys.exc_info()` in pdb (#103294) | Irit Katriel | 2023-04-09 | 1 | -8/+9 |
| | |||||
* | gh-103225: Fixed zero lineno issue for pdb (#103265) | Tian Gao | 2023-04-07 | 1 | -2/+12 |
| | | | | | Co-authored-by: Artem Mukhin <ortem00@gmail.com> | ||||
* | gh-103068: Check condition expression of breakpoints for pdb (#103069) | gaogaotiantian | 2023-03-29 | 1 | -12/+26 |
| | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Artem Mukhin <ortem00@gmail.com> | ||||
* | gh-103023: Add SyntaxError check in pdb's `display` command (#103024) | gaogaotiantian | 2023-03-27 | 1 | -13/+18 |
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | gh-102778: Add sys.last_exc, deprecate sys.last_type, ↵ | Irit Katriel | 2023-03-18 | 1 | -1/+5 |
| | | | | sys.last_value,sys.last_traceback (#102779) | ||||
* | GH-101673: Fix pdb bug where local variable changes are lost after longlist ↵ | gaogaotiantian | 2023-03-12 | 1 | -11/+2 |
| | | | | (#101674) | ||||
* | gh-93696: Locate frozen module source with __file__ (#93697) | James Gerity | 2022-10-25 | 1 | -0/+6 |
| | | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | ||||
* | gh-95913: make the new internal classes pdb.ModuleTarget/ScriptTarget ↵ | Irit Katriel | 2022-08-18 | 1 | -4/+4 |
| | | | | private (GH-96053) | ||||
* | bpo-39278: add docstrings to functions in pdb module (#17924) | Carl Bordum Hansen | 2022-05-10 | 1 | -0/+39 |
| | |||||
* | bpo-46434: Handle missing docstrings in pdb help (GH-30705) | Tom Sparrow | 2022-01-21 | 1 | -0/+3 |
| | |||||
* | bpo-44682: Handle invalid arg to pdb's "commands" directive (#27252) | andrei kulakov | 2021-07-28 | 1 | -0/+6 |
| | |||||
* | bpo-44461: Check early that a pdb target is valid for execution. (#27227) | Jason R. Coombs | 2021-07-28 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | * bpo-44461: Fix bug with pdb's handling of import error due to a package which does not have a __main__ module * 📜🤖 Added by blurb_it. * remove "else" Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> * If running as a module, first check that it can run as a module. Alternate fix for bpo-44461. Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | ||||
* | bpo-44554: refactor pdb targets (and internal tweaks) (GH-26992) | Jason R. Coombs | 2021-07-19 | 1 | -64/+104 |
| | | | | | | | | - Refactor module/script handling to share an interface (check method). - Import functools and adjust tests for the new line number for find_function. - Use cached_property for details. - Add blurb. Automerge-Triggered-By: GH:jaraco | ||||
* | bpo-41137: Use utf-8 encoding while reading .pdbrc files (GH-21263) | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 2021-07-08 | 1 | -2/+2 |
| | |||||
* | bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656) | Irit Katriel | 2021-07-03 | 1 | -1/+5 |
| | |||||
* | bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints ↵ | huzhaojie | 2021-06-11 | 1 | -1/+1 |
| | | | | (GH-24646) | ||||
* | bpo-37022: Fix bug where pdb's do_p/do_pp commands swallow exceptions from ↵ | Daniel Hahler | 2021-06-10 | 1 | -14/+19 |
| | | | | repr (GH-18180) | ||||
* | bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (#25438) | Erlend Egeberg Aasland | 2021-05-11 | 1 | -1/+2 |
| | | | | Co-authored-by: Thomas Kluyver <takowl@gmail.com> | ||||
* | bpo-26053: Fix args echoed by pdb run command (#22033) | Irit Katriel | 2021-04-01 | 1 | -1/+1 |
| | |||||
* | bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) | Andrey Bienkowski | 2021-01-22 | 1 | -1/+2 |
| | | | Automerge-Triggered-By: GH:gvanrossum | ||||
* | bpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935) | Irit Katriel | 2020-08-27 | 1 | -6/+6 |
| | |||||
* | bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010) | Serhiy Storchaka | 2020-06-21 | 1 | -1/+2 |
| | |||||
* | bpo-41043: Escape literal part of the path for glob(). (GH-20994) | Serhiy Storchaka | 2020-06-20 | 1 | -1/+1 |
| | |||||
* | bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127) | jsnklln | 2019-11-12 | 1 | -1/+2 |
| | | | | Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com> | ||||
* | closes bpo-37803: pdb: fix handling of options (--help / --version) (GH-15193) | Daniel Hahler | 2019-09-12 | 1 | -1/+1 |
| | | | | | | | The "--" should not be included with long options passed to getopt.getopt. Fixes https://bugs.python.org/issue37803 | ||||
* | bpo-36250: ignore ValueError from signal in non-main thread (GH-12251) | Daniel Hahler | 2019-09-09 | 1 | -2/+6 |
| | | | | Authored-By: blueyed <github@thequod.de> | ||||
* | bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847) | Timothy Hopper | 2019-08-02 | 1 | -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> | ||||
* | bpo-37363: Add audit events for a range of modules (GH-14301) | Steve Dower | 2019-06-24 | 1 | -0/+1 |
| | |||||
* | bpo-37122: Make co->co_argcount represent the total number of positonal ↵ | Pablo Galindo | 2019-06-01 | 1 | -1/+1 |
| | | | | arguments in the code object (GH-13726) | ||||
* | bpo-36969: Make PDB args command display positional only arguments (GH-13459) | Rémi Lapeyre | 2019-05-24 | 1 | -1/+1 |
| | |||||
* | bpo-36969: Make PDB args command display keyword only arguments (GH-13452) | Rémi Lapeyre | 2019-05-20 | 1 | -3/+3 |
| | |||||
* | bpo-36431: Use PEP 448 dict unpacking for merging two dicts. (GH-12553) | Serhiy Storchaka | 2019-03-27 | 1 | -4/+2 |
| | |||||
* | bpo-35931: Gracefully handle any exception in pdb debug command (GH-12103) | Daniel Hahler | 2019-03-12 | 1 | -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 Hahler | 2019-02-15 | 1 | -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 Corchero | 2018-02-03 | 1 | -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 Corchero | 2018-01-28 | 1 | -2/+4 |
| | |||||
* | bpo-32206: Pdb can now run modules (GH-4752) | Mario Corchero | 2018-01-06 | 1 | -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 Warsaw | 2017-09-22 | 1 | -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 Gaye | 2016-10-12 | 1 | -3/+7 |
|\ | |||||
| * | Issue #20766: Fix references leaked by pdb in the handling of SIGINT handlers. | Xavier de Gaye | 2016-10-12 | 1 | -3/+7 |
| | | |||||
* | | Issue #18401: pdb tests don't read ~/.pdbrc anymore | Łukasz Langa | 2016-09-10 | 1 | -10/+12 |
|/ | | | | Patch by Martin Matusiak and Sam Kimbrel. | ||||
* | Issue #27171: Fix typos in documentation, comments, and test function names | Martin Panter | 2016-06-02 | 1 | -1/+1 |
| | |||||
* | Issue #27076: Doc, comment and tests spelling fixes | Martin Panter | 2016-05-26 | 1 | -1/+1 |
| | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä. | ||||
* | merge from 3.4 | Terry Jan Reedy | 2015-09-05 | 1 | -0/+3 |
|\ | |||||
| * | Issue #16180: Exit pdb if file has syntax error, instead of trapping user | Terry Jan Reedy | 2015-09-05 | 1 | -0/+3 |
| | | | | | | | | in an infinite loop. Patch by Xavier de Gaye. | ||||
* | | Issue #22186: Fix typos in Lib/. | Berker Peksag | 2014-10-19 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch by Févry Thibault. |