You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails app, I have a dev console running that I use to test pieces of my code. Usually when something doesn't behave as expected, I need to debug the methods/services from the inside, so I add a binding.pry where I need to debug, do a reload! in my console and re-execute the function/service i'm debugging.
What happens is pry open as expected, I check what is the content of my variables, do a few next... basic pry usage.
When i'm done, I use exit to return to my rails console. The console history now has the next commands in History, and the autocomplete is replaced by pry's.
Eg: After fixing my code, and want to debug it a second time, I try to type reload! again, but since I'm lazy (i'm a programer after all) I like to type it as rel-TAB, which should resolve to reload! but doesn't anymore. It resolves to reload-code or reload-method now (pry methods) which don't exist on IRB so use auto-completion from this point on will always result in an error).
Hi there, I encounter this issue a lot.
Rails app, I have a dev console running that I use to test pieces of my code. Usually when something doesn't behave as expected, I need to debug the methods/services from the inside, so I add a
binding.pry
where I need to debug, do areload!
in my console and re-execute the function/service i'm debugging.What happens is pry open as expected, I check what is the content of my variables, do a few
next
... basic pry usage.When i'm done, I use
exit
to return to my rails console. The console history now has thenext
commands in History, and the autocomplete is replaced by pry's.Eg: After fixing my code, and want to debug it a second time, I try to type
reload!
again, but since I'm lazy (i'm a programer after all) I like to type it asrel-TAB
, which should resolve toreload!
but doesn't anymore. It resolves toreload-code
orreload-method
now (pry methods) which don't exist on IRB so use auto-completion from this point on will always result in an error).Seems related to : #1474.
The text was updated successfully, but these errors were encountered: