diff --git a/lib/pry-remote.rb b/lib/pry-remote.rb index b91d381..41ae444 100644 --- a/lib/pry-remote.rb +++ b/lib/pry-remote.rb @@ -157,7 +157,7 @@ def initialize(object, host = DefaultHost, port = DefaultPort, options = {}) # Code that has to be called for Pry-remote to work properly def setup - @hooks = Pry::Hooks.new + @hooks = Pry::DEFAULT_HOOKS.dup @hooks.add_hook :before_eval, :pry_remote_capture do capture_output