mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-16 05:17:24 +08:00
add debug mode
This commit is contained in:
committed by
Watson
parent
66d77079df
commit
740d17002e
@@ -40,6 +40,11 @@ end
|
||||
desc "Run the project"
|
||||
task :run => 'build' do
|
||||
exec = App.config.app_bundle_executable('MacOSX')
|
||||
App.info 'Run', exec
|
||||
sh exec
|
||||
if ENV['debug']
|
||||
App.info 'Debug', exec
|
||||
sh "/usr/bin/gdb --args \"#{exec}\""
|
||||
else
|
||||
App.info 'Run', exec
|
||||
sh exec
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user