Skip to content

Using pry byebug inline

Lin Dong edited this page Aug 18, 2015 · 1 revision

Since pry-byebug have a hard dependency on pry, require pry is needed.

Sample Code

require 'pry'
require 'pry-byebug'

def main
  puts "Hello"
  binding.pry # break point here
  puts "World"
end


if __FILE__ == $PROGRAM_NAME
  # Put "main" code here
  main
end
Clone this wiki locally