-
Notifications
You must be signed in to change notification settings - Fork 604
Description
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 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).
Seems related to : #1474.