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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
Make breakpoint break immediately
  • Loading branch information
gaogaotiantian committed May 4, 2024
commit 2a35fbcb50817e4f4ccf27a1f14dd3914c625776
2 changes: 1 addition & 1 deletion Lib/bdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def set_trace(self, frame=None):
# We need f_trace_lines == True for the debugger to work
frame.f_trace_lines = True
frame = frame.f_back
self.set_step()
self.set_stepinstr()
Comment thread
brandtbucher marked this conversation as resolved.
sys.settrace(self.trace_dispatch)

def set_continue(self):
Expand Down
2 changes: 2 additions & 0 deletions Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ def user_line(self, frame):
if self.bp_commands(frame):
self.interaction(frame, None)

user_opcode = user_line

def bp_commands(self, frame):
"""Call every command that was set for the current active breakpoint
(if there is one).
Expand Down
Loading