Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support command on CheckBreakpoint #495

Merged
merged 4 commits into from
Mar 20, 2022

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.

lib/debug/breakpoint.rb Outdated Show resolved Hide resolved
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 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
Development

Successfully merging this pull request may close these issues.

2 participants