Skip to content

Comments

Support command on CheckBreakpoint#495

Merged
ko1 merged 4 commits intoruby:masterfrom
st0012:support-command-on-check-bp
Mar 20, 2022
Merged

Support command on CheckBreakpoint#495
ko1 merged 4 commits intoruby:masterfrom
st0012:support-command-on-check-bp

Conversation

@st0012
Copy link
Member

@st0012 st0012 commented Jan 16, 2022

  1. break if: cond doesn't support commands like do: or pre:. This PR adds the support.
  2. To make missing option support noticeable in the future, I've centralized Breakpoint's options processing to the parent class as keyword arguments. This requires the options (path, command and cond for now) to be explicitly provided. It should make missing support of them more noticeable.

@st0012 st0012 force-pushed the support-command-on-check-bp branch from 3cb98ad to d528dcf Compare February 21, 2022 20:01
By requiring all subclasses to pass cond, command, and path explicitly,
it should reduce the chance to miss support on them (or new options).
@st0012 st0012 force-pushed the support-command-on-check-bp branch from d528dcf to 8786af7 Compare February 21, 2022 20:02
@st0012 st0012 requested a review from ko1 February 21, 2022 20:09
@ko1 ko1 merged commit dfe0795 into ruby:master Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants