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

Inspect numbered params or the default block param #1133

Open
eric1234 opened this issue Jan 30, 2025 · 0 comments
Open

Inspect numbered params or the default block param #1133

eric1234 opened this issue Jan 30, 2025 · 0 comments

Comments

@eric1234
Copy link

Sorry if this is the wrong place to ask this. I've searched the web, asked AI, asked on a few Ruby forums and searched the issues on this repo.

The numbered block params (_1, _2, ...) and the new default block param (it) cannot be inspected in the debugger. I've tried various things such as:

  • Using eval - eval('it')
  • Inspecting binding
  • Assigning to a value at the debugger prompt (v = it)

Nothing seems to work. I generally have to update the code to use traditional named block args which is sort of annoying and makes me not want to use it even though I otherwise love it.

Am I missing something or is this just a current deficiency in the debugger?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant