Reputation: 33
I am new to rails and trying to debug my code. I am using byebug for it.
The problem I am facing is that I want to know the variables in current scope but when I use any of these commands
info locals
info variables
it shows the error
*** Unknown info command locals
*** Unknown info command varibles
I am not able to figure out why this is happening.
Upvotes: 2
Views: 361
Reputation: 4038
The commands you are after are now called
var local
and var all
.
Background: Some of the info
commands have been removed/renamed back in 2014. See this changelog for more information on the change and this command list.
You can type var
and hit enter to get an overview on the variable commands within byebug.
Upvotes: 3