ConradIrwin / pry-rescue

Start a pry session whenever something goes wrong.
MIT License
852 stars 49 forks source link

watchr script use pry-rescue. #79

Closed zw963 closed 3 years ago

zw963 commented 9 years ago

I have one script use watchr gem, e.g.

#!/usr/bin/env watchr

 watch '(.+)\.rb$' do |match|
    run_file_test Dir["#{match[1]}_{test,spec}.rb"].join(' ')
  end

...

How to use pry-rescue in this case ?

If i can export a environment variable as flags, to decide use or not use pry-rescue, it will be fine.

it is the purpose my previous too. https://github.com/ConradIrwin/pry-rescue/issues/76

zw963 commented 3 years ago

can't remember what this issue is for ... closing ...