Is there the equivalent of next in Pry?

Jeremy Smith picture Jeremy Smith · Oct 19, 2011 · Viewed 41.9k times · Source

I don't see a way of just going to the next line when using pry as a debugger. All I can find is to edit the method and move binding.pry to the next line. Is there such a feature?

22:     def scan path
23:         @last_line_had_text, @files_read, @hands_read = nil, 0, 0
24:         Find.find(path){ |file_name|
=> 25:          binding.pry
26:             read_file(file_name) if file_name.include?(".txt")
27:         }
28:     end

Answer

mko picture mko · Sep 15, 2012

Ctrl+D, you can jump to next break or exit