Commit 32f55ff
Fix help message of the
When running the `eval` command (or its alias, `call`) without an
argument, you get the following error:
```
[REPL ERROR] #<NameError: undefined local variable or method `cmd' for #<DEBUGGER__::Session:0x0000000120a0fa20>>
debug-1.10.0/lib/debug/session.rb:934:in `block in register_default_command'
debug-1.10.0/lib/debug/session.rb:1165:in `process_command'
...
```
...instead of this hint:
```
To evaluate the variable `eval`, use `pp eval` instead.
```
I believe the regression was introduced in a402e73.
To fix this issue, I was thinking of passing the command name alongside
the argument in the `process_line` method but I wasn't sure this was
worth it just for this hint. So I removed the hint altogether instead.eval command1 parent b0ca87e commit 32f55ff
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
935 | 934 | | |
936 | 935 | | |
937 | 936 | | |
| |||
0 commit comments