debug
debug copied to clipboard
Inspect numbered params or the default block param
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?