Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ def process
end
end

SESSION.clear_all_breakpoints
send_response req

## control
Expand Down
4 changes: 4 additions & 0 deletions lib/debug/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1386,6 +1386,10 @@ def clear_catch_breakpoints *exception_names
end
end

def clear_all_breakpoints
clear_breakpoints{true}
end

def add_iseq_breakpoint iseq, **kw
bp = ISeqBreakpoint.new(iseq, [:line], **kw)
add_bp bp
Expand Down