How do I step out of a loop with Ruby Pry? October 10, 2022 by Tarik To exit Pry unconditionally, type exit-program Edit from @Nick’s comment: Also works: !!!