6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/pryx/pry_hack.rb', line 6
def _pry(host=nil, port=nil, options={})
if host
require 'pry-remote'
else
require 'pry'
end
require 'pryx/ap_hack'
require 'pryx/break_hack'
require 'pry-stack_explorer'
Pry::Commands.block_command 'cc', 'Continue, but stop in pry! breakpoint' do
Pry.instance_variable_set(:@initial_session, true)
ENV['Pry_was_started'] = nil
throw(:breakout)
end
if host
notify_send('loading remote pry ...')
remote_pry(host, port, options)
else
warn '[1m[33mloading pry ...[0m'
self.pry
end
end
|