Inspect numbered params or the default block param

Abierto
#1,133 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
ruby
Área
devtools

Línea de trabajo

Reproduce the issue in the debugger using numbered block parameters and the default block parameter it, then compare evaluation through eval, binding, and the debugger prompt. Done means these parameters can be inspected without rewriting the block to use named arguments.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Ruby
Estrellas
1.3k
Forks
146
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ruby/debug

Todos los issues de ruby/debug

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.