mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add lldb as a debugger option
This adds support for lldb as a debugger so that tests can be run under lldb like this: $ make test-all TESTS=test/some_test.rb RUNRUBYOPT=--debugger=lldb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7aab72f736
commit
b46ef9d634
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,8 @@ while arg = ARGV[0]
|
|||
case value
|
||||
when nil
|
||||
debugger = :gdb
|
||||
when "lldb"
|
||||
debugger = :lldb
|
||||
when "no"
|
||||
else
|
||||
debugger = Shellwords.shellwords(value)
|
||||
|
@ -139,6 +141,10 @@ if debugger or ENV['RUNRUBY_USE_GDB'] == 'true'
|
|||
end
|
||||
debugger << '--args'
|
||||
end
|
||||
if debugger == :lldb
|
||||
debugger = %w'lldb --'
|
||||
end
|
||||
|
||||
if idx = precommand.index(:debugger)
|
||||
precommand[idx, 1] = debugger
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue