我有带有这个保护文件的 Rails 3.1.1 应用程序:
guard 'bundler' do
watch('Gemfile')
end
guard 'rails' do
watch('Gemfile.lock')
watch(%r{^(config|lib)/.*})
end
当我的应用程序在保护下运行时,调用binding.pry
不会暂停执行。我该如何做到这一点?
我有带有这个保护文件的 Rails 3.1.1 应用程序:
guard 'bundler' do
watch('Gemfile')
end
guard 'rails' do
watch('Gemfile.lock')
watch(%r{^(config|lib)/.*})
end
当我的应用程序在保护下运行时,调用binding.pry
不会暂停执行。我该如何做到这一点?
I haven't used Guard before but perhaps what you want are Remote sessions
This is from their GitHub page:
pause: pause|p + return - Toggle files modification listening. Useful when switching git branches.
Not sure if that's what you are needing.