Skip to content

Inspect numbered params or the default block param #1133

@eric1234

Description

@eric1234

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions