diff options
author | elijah <elijah@riseup.net> | 2015-02-25 09:39:35 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-02-25 09:39:35 -0800 |
commit | c0770e0c5a914a7c7f25349e51b41a16a1154373 (patch) | |
tree | 799a1a34ea5f4624428af9df6a9173a8b510a915 /bin/leap | |
parent | 39c8a357ec10b9cb4ecf75324561ed82241e27d6 (diff) |
allow use of byebug
Diffstat (limited to 'bin/leap')
-rwxr-xr-x | bin/leap | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3,7 +3,11 @@ if ARGV.include?('--debug') || ARGV.include?('-d') DEBUG=true begin - require 'debugger' + if RUBY_VERSION =~ /^2/ + require 'byebug' + else + require 'debugger' + end rescue LoadError end else |