Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
18e6e9c
Allow using sys.monitoring for bdb
gaogaotiantian Sep 25, 2024
b29aff5
Add basic line ignore
gaogaotiantian Sep 25, 2024
23601f3
Use setttrace as default backend for bdb
gaogaotiantian Sep 25, 2024
c9a92f6
📜🤖 Added by blurb_it.
blurb-it[bot] Sep 25, 2024
8955d78
Use settrace by default for pdb.Pdb, but use monitoring for all
gaogaotiantian Sep 26, 2024
6afc2e7
Only trigger events on thread calling start_trace
gaogaotiantian Oct 16, 2024
b595682
Use local events when possible
gaogaotiantian Oct 16, 2024
addf465
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian Jan 19, 2025
70d5138
Fix ignore and condition of breakpoints
gaogaotiantian Feb 8, 2025
7c83425
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian Feb 8, 2025
fe9971c
Address comments about backend
gaogaotiantian Feb 18, 2025
69a5030
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian Feb 18, 2025
05cc3b0
We need BaseException to handle SystemExit case
gaogaotiantian Feb 18, 2025
e6bc287
Move default_backend to module level and provide utils
gaogaotiantian Feb 19, 2025
f0c1306
Do not need to pass trace_dispatch explicitly
gaogaotiantian Feb 19, 2025
a9b53ed
Add docs
gaogaotiantian Feb 19, 2025
9790085
Add version added
gaogaotiantian Feb 19, 2025
ea811f2
Add new functions to __all__
gaogaotiantian Feb 19, 2025
ad2179e
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian Mar 7, 2025
e4ccd8a
Restart events after user line
gaogaotiantian Mar 7, 2025
d2c1f2e
Merge branch 'main' into pdb-use-monitoring
gaogaotiantian Mar 17, 2025
e9252ec
Remove blank line
gaogaotiantian Mar 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add version added
  • Loading branch information
gaogaotiantian committed Feb 19, 2025
commit 97900852e11f65043a8c0d57fa57c5d7d83a575f
8 changes: 8 additions & 0 deletions Doc/library/bdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,15 @@ The :mod:`bdb` module also defines two classes:
Start tracing. For ``'settrace'`` backend, this method is equivalent to
``sys.settrace(self.trace_dispatch)``

.. versionadded:: 3.14

.. method:: stop_trace(self)

Stop tracing. For ``'settrace'`` backend, this method is equivalent to
``sys.settrace(None)``

.. versionadded:: 3.14

.. method:: reset()

Set the :attr:`!botframe`, :attr:`!stopframe`, :attr:`!returnframe` and
Expand Down Expand Up @@ -397,13 +401,17 @@ The :mod:`bdb` module also defines two classes:
called. This is helpful when the debugger is not interested in the current
line.

.. versionadded:: 3.14

.. method:: restart_events()

Restart all the disabled events. This function is automatically called in
``dispatch_*`` methods after ``user_*`` methods are called. If the
``dispatch_*`` methods are not overridden, the disabled events will be
restarted after each user interaction.

.. versionadded:: 3.14


Derived classes and clients can call the following methods to get a data
structure representing a stack trace.
Expand Down