2

我有带有这个保护文件的 Rails 3.1.1 应用程序:

guard 'bundler' do
  watch('Gemfile')
end

guard 'rails' do
  watch('Gemfile.lock')
  watch(%r{^(config|lib)/.*})
end

当我的应用程序在保护下运行时,调用binding.pry不会暂停执行。我该如何做到这一点?

4

2 回答 2

3

I haven't used Guard before but perhaps what you want are Remote sessions

于 2011-10-19T16:28:24.600 回答
-1

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.

于 2011-10-19T18:18:53.153 回答