Tian Gao
62173cc02c
Clean up pdb state after each pdb doctest ( #132577 )
2025-04-16 13:44:33 -04:00
Tian Gao
d19af00b90
gh-132536: Do not disable PY_THROW event in bdb ( #132537 )
2025-04-15 18:31:52 -04:00
Russell Keith-Magee
b754aeedfb
gh-121468: Ensure PDB cleans up event loop policies after using asyncio. ( #131388 )
...
Adds teardown logic, plus a change to asyncio.run usage, to avoid warnings when
running the test suite single process.
2025-03-19 08:33:31 +08:00
Tian Gao
a936af924e
gh-120144: Make it possible to use `sys.monitoring` for bdb and make it default for pdb ( #124533 )
2025-03-17 18:34:37 -04:00
Tian Gao
26511993e6
gh-121468: Fix the doctest failure for asyncio test on pdb ( #131258 )
2025-03-14 16:23:21 -04:00
Tian Gao
27fc62cf4f
gh-121468: Add current asyncio task as a convenience variable in pdb ( #124367 )
2025-03-14 14:46:26 -04:00
Tian Gao
b52866953a
gh-131123: Support completion in `pdb` for convenience variable attributes ( #131124 )
2025-03-12 17:23:53 -04:00
Tian Gao
b6769e9404
gh-125377: Improve tab indentation for pdb multi-line input ( #130471 )
2025-03-04 15:45:38 -05:00
Tian Gao
e20e47dda6
gh-130660: Add a test for pdb when user quits after interact command ( #130852 )
2025-03-04 15:10:32 -05:00
Tian Gao
63b6ec31c4
gh-82987: Stop on calling frame unconditionally for inline breakpoints ( #130493 )
2025-03-04 11:35:47 -05:00
Adam D. Thomas
ccb4ad9219
gh-124703: Change back to raising bdb.BdbQuit when exiting pdb in 'inline' mode in a REPL session ( #130395 )
2025-02-24 21:27:26 -05:00
Tian Gao
ee337bea01
gh-57537: Support breakpoints for zipimport modules on pdb ( #130290 )
2025-02-19 21:01:04 -05:00
Tian Gao
8207454bc0
gh-124703: Add extra checks for pdb quit test ( #130286 )
2025-02-18 16:55:39 -05:00
Tian Gao
076300d795
gh-126944: Show explicit errors when required arguments of pdb commands are missing ( #130240 )
2025-02-18 10:58:15 -05:00
Tian Gao
7d275611f6
gh-124703: Do not raise an exception when quitting pdb ( #124704 )
2025-01-26 22:29:16 -05:00
Tian Gao
767c89ba7c
gh-58956: Fix a frame refleak in bdb ( #128190 )
2025-01-17 10:33:04 -05:00
Yan Yanchii
0946ed25b5
gh-128438: Add `EnvironmentVarGuard` for `test_pdb.py` ( #128522 )
2025-01-11 11:19:29 -05:00
Thomas Grainger
aab51c3414
gh-128265: Support WASI/Emscripten on PDB tests, by removing asyncio from pdb tests ( #128264 )
...
A part of `Lib/test/test_pdb.py` was previously unable to run on WASI/Emscripten
platforms because it lacked support for `asyncio`.
In fact, these tests could be rewritten without the `asyncio` framework because
`test_pdb` tests the behavior of coroutines, which are not part of `asyncio`.
Now reliance on the availability of `asyncio` has been removed and
part of `test_pdb` that deals with coroutines working on WASI/Emscripten platforms.
2024-12-28 16:59:49 +02:00
Kirill Podoprigora
d9ed42bc00
gh-128201: Fix ``DeprecationWarning`` in ``test_pdb`` ( #128202 )
2024-12-25 12:56:51 +05:30
Kumar Aditya
5892853fb7
gh-127949: deprecate `asyncio.set_event_loop_policy` ( #128024 )
...
First step towards deprecating the asyncio policy system.
This deprecates `asyncio.set_event_loop_policy` and will be removed in Python 3.16.
2024-12-18 11:35:29 +05:30
Tian Gao
1bc4f076d1
gh-127321: Avoid stopping at an opcode without an associated line number for breakpoint() ( #127457 )
2024-12-01 11:57:03 -05:00
Tian Gao
8f2c0f7a03
gh-125884: Support breakpoint on functions with annotations ( #125892 )
2024-10-23 18:04:30 -04:00
Tian Gao
8f5e39d5c8
gh-125378: Trigger a repeat for the full multi-line statement for empty line command ( #125717 )
2024-10-19 17:46:57 -04:00
Tian Gao
77cebb1ce9
gh-125600: Only show stale code warning on source code display commands ( #125601 )
2024-10-17 20:29:11 -04:00
Tian Gao
12eaadc0ad
gh-58956: Set f_trace on frames with breakpoints after setting a new breakpoint ( #124454 )
2024-10-15 15:56:33 -04:00
Tian Gao
9c2bb7d551
gh-125115: Pass unknown pdb command line args to script instead of fail ( #125424 )
...
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2024-10-15 15:30:28 -04:00
Irit Katriel
e97910cdb7
gh-125522 : add explicit exception types to bare excepts in tests ( #125523 )
2024-10-15 17:00:04 +01:00
Tian Gao
bb9604b62a
gh-100141: Allow pdb to deal with empty file ( #125425 )
2024-10-15 11:45:23 -04:00
Tian Gao
703227dd02
gh-125422: Don't set the caller's f_trace if it's botframe ( #125427 )
2024-10-15 10:51:37 -04:00
Tian Gao
adfe7657a3
gh-124552 : Improve the accuracy of possible breakpoint check in bdb ( #124553 )
2024-10-04 21:32:57 -04:00
Tian Gao
b5774603a0
gh-124400: Use the normal command path for breakpoint commands ( #124401 )
...
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2024-09-29 19:46:16 -04:00
Tian Gao
28efeefab7
gh-123756: Disable restart command if pdb is in inline mode ( #123757 )
2024-09-25 11:18:01 -07:00
Tian Gao
af8403a58d
gh-120254: Add a `commands` argument to `pdb.set_trace` ( #120255 )
2024-09-24 12:52:15 -07:00
Wulian
94036e43a8
Fix typos in comments ( #123201 )
2024-08-21 12:49:23 +00:00
Łukasz Langa
cad11a2bdc
gh-111051: [tests] Wait a second to support filesystems with low-resolution mtime (GH-121959)
2024-07-22 13:03:07 +02:00
Tian Gao
c0af6d4ff1
gh-121651: Fix pdb header test ( #121724 )
2024-07-13 11:55:22 -07:00
Tian Gao
690b9355e0
gh-121450: Make inline breakpoints use the most recent pdb instance ( #121451 )
2024-07-10 19:54:27 -07:00
Tian Gao
e245ed7d1e
gh-118714: Make the pdb post-mortem restart/quit behavior more reasonable ( #118725 )
2024-07-03 11:30:20 -07:00
Tian Gao
31ce5c05a4
gh-120769: Add pdb meta command to print frame status. ( #120770 )
2024-06-20 10:38:07 -07:00
Tian Gao
4bbb0273f2
gh-120606: Allow EOF to exit pdb commands definition ( #120607 )
2024-06-19 15:50:26 -07: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
Tian Gao
5d04cc50e5
gh-102864: Add switching frame test for pdb ( #119564 )
2024-05-26 17:05:23 +00:00
Tian Gao
f526314194
gh-58933: Make pdb return to caller frame correctly when f_trace is not set ( #118979 )
2024-05-13 13:38:21 +01:00
Tian Gao
e5353d49dc
GH-83151: Add closure support to pdb (GH-111094)
2024-05-06 11:34:13 -07:00
Tian Gao
5a0022a1d7
GH-111744: Make breakpoint() enter the debugger immediately (GH-118579)
2024-05-05 07:05:01 -07:00
Tian Gao
f34e965e52
GH-111744: Support opcode events in bdb (GH-111834)
2024-05-04 07:44:49 -07:00
Tian Gao
00da0afa0d
gh-113081: Print colorized exception just like built-in traceback in pdb ( #113082 )
2024-05-04 12:26:40 +02:00
Tian Gao
4e2caf2aa0
gh-118500: Add pdb support for zipapp ( #118501 )
2024-05-02 21:53:27 +01: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
efcc96844e
gh-69201: Separate stdout and stderr stream in test_pdb ( #117308 )
2024-03-28 18:23:29 +00:00