зеркало из https://github.com/github/ruby.git
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:
Родитель
7aab72f736
Коммит
b46ef9d634
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче