How do I step out of a loop with Ruby Pry?

前端 未结 9 1073
醉话见心
醉话见心 2020-12-22 15:11

I\'m using Pry with my Rails application. I set binding.pry inside a loop in my model to try and debug a problem. For example:

(1..100).each do          


        
9条回答
  •  囚心锁ツ
    2020-12-22 15:55

    To exit Pry unconditionally, type

    exit-program
    

    Edit from @Nick's comment: Also works:

    !!!
    

提交回复
热议问题