summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-87115: Set `__main__.__spec__` to `None` in pdb (#116141)Tian Gao2024-02-291-0/+1
|
* gh-59013: Set breakpoint on the first executable line of function when using ↵Tian Gao2024-01-311-19/+32
| | | | `break func` in pdb (#112470)
* gh-111051: Check if file is modifed during debugging in `pdb` (#111052)Tian Gao2024-01-251-0/+21
|
* gh-112343: pdb: Use tokenize to replace convenience variables (#112380)Tian Gao2024-01-171-1/+35
|
* gh-102980: Redirect output of pdb's `interact` command, add tests and ↵Tian Gao2023-12-071-3/+14
| | | | improve docs (#111194)
* gh-99367: Do not mangle sys.path[0] in pdb if safe_path is set (#111762)Tian Gao2023-11-271-2/+4
| | | | Co-authored-by: Christian Walther <cwalther@users.noreply.github.com>
* gh-110944: Make pdb completion work for alias and convenience vars (GH-110945)Tian Gao2023-11-141-1/+17
|
* gh-111719: Add extra check for alias command (#111720)Tian Gao2023-11-041-6/+27
|
* gh-59013: Make line number of function breakpoint more precise (#110582)Tian Gao2023-10-271-1/+18
|
* GH-102895 Add an option local_exit in code.interact to block exit() from ↵Tian Gao2023-10-181-1/+1
| | | | terminating the whole process (GH-102896)
* gh-108791: Fix `pdb` CLI invalid argument handling (#108816)Radislav Chugunov2023-10-161-0/+6
|
* gh-84583: Make pdb enter post-mortem mode even for SyntaxError (#110883)Tian Gao2023-10-151-6/+3
|
* gh-65052: Prevent pdb from crashing when trying to display objects (#110578)Tian Gao2023-10-111-7/+14
|
* gh-106670: Set convenience variable for post mortem debugging (#110493)Tian Gao2023-10-091-0/+8
|
* gh-109164: Replace `getopt` with `argparse` in pdb (#109165)Tian Gao2023-09-221-18/+26
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-109375: Fix bug where pdb registers an alias without an associated ↵buermarc2023-09-141-2/+5
| | | | command (#109376)
* GH-106734: Disable tab completion in pdb's multiline mode (GH-106735)Tian Gao2023-09-121-21/+38
|
* gh-106670: Fix Pdb handling of chained Exceptions with no stacks. (#108865)Matthias Bussonnier2023-09-061-5/+24
|
* gh-108463: Make expressions/statements work as expected in pdb (#108464)Tian Gao2023-09-041-0/+3
|
* gh-106670: Allow Pdb to move between chained exceptions (#106676)Matthias Bussonnier2023-08-281-18/+124
|
* GH-103124: Multiline statement support for pdb (GH-103125)Tian Gao2023-06-151-1/+25
|
* gh-103464: Add checks for arguments of pdb commands (GH-103465)Tian Gao2023-05-311-8/+56
|
* gh-104301: Allow leading whitespace in disambiguated pdb statements (#104342)James Gerity2023-05-111-4/+7
|
* gh-103693: Add convenience variable feature to `pdb` (#103694)Tian Gao2023-05-031-0/+17
|
* gh-103578: Fix pdb reading code with non-utf8 encoding (#103581)Tian Gao2023-04-261-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 Gao2023-04-111-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 Katriel2023-04-091-8/+9
|
* gh-103225: Fixed zero lineno issue for pdb (#103265)Tian Gao2023-04-071-2/+12
| | | | | Co-authored-by: Artem Mukhin <ortem00@gmail.com>
* gh-103068: Check condition expression of breakpoints for pdb (#103069)gaogaotiantian2023-03-291-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)gaogaotiantian2023-03-271-13/+18
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-102778: Add sys.last_exc, deprecate sys.last_type, ↵Irit Katriel2023-03-181-1/+5
| | | | sys.last_value,sys.last_traceback (#102779)
* GH-101673: Fix pdb bug where local variable changes are lost after longlist ↵gaogaotiantian2023-03-121-11/+2
| | | | (#101674)
* gh-93696: Locate frozen module source with __file__ (#93697)James Gerity2022-10-251-0/+6
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-95913: make the new internal classes pdb.ModuleTarget/ScriptTarget ↵Irit Katriel2022-08-181-4/+4
| | | | private (GH-96053)
* bpo-39278: add docstrings to functions in pdb module (#17924)Carl Bordum Hansen2022-05-101-0/+39
|
* bpo-46434: Handle missing docstrings in pdb help (GH-30705)Tom Sparrow2022-01-211-0/+3
|
* bpo-44682: Handle invalid arg to pdb's "commands" directive (#27252)andrei kulakov2021-07-281-0/+6
|
* bpo-44461: Check early that a pdb target is valid for execution. (#27227)Jason R. Coombs2021-07-281-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. Coombs2021-07-191-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-081-2/+2
|
* bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656)Irit Katriel2021-07-031-1/+5
|
* bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints ↵huzhaojie2021-06-111-1/+1
| | | | (GH-24646)
* bpo-37022: Fix bug where pdb's do_p/do_pp commands swallow exceptions from ↵Daniel Hahler2021-06-101-14/+19
| | | | repr (GH-18180)
* bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (#25438)Erlend Egeberg Aasland2021-05-111-1/+2
| | | | Co-authored-by: Thomas Kluyver <takowl@gmail.com>
* bpo-26053: Fix args echoed by pdb run command (#22033)Irit Katriel2021-04-011-1/+1
|
* bpo-42384: pdb: correctly populate sys.path[0] (GH-23338)Andrey Bienkowski2021-01-221-1/+2
| | | Automerge-Triggered-By: GH:gvanrossum
* bpo-41609: Fix output of pdb's whatis command for instance methods (GH-21935)Irit Katriel2020-08-271-6/+6
|
* bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)Serhiy Storchaka2020-06-211-1/+2
|
* bpo-41043: Escape literal part of the path for glob(). (GH-20994)Serhiy Storchaka2020-06-201-1/+1
|
* bpo-38723: Pdb._runscript should use io.open_code() instead of open() (GH-17127)jsnklln2019-11-121-1/+2
| | | | Co-Authored-By: Brandt Bucher <brandtbucher@gmail.com>