add debug mode

This commit is contained in:
Laurent Sansonetti
2013-04-26 17:14:02 +02:00
committed by Watson
parent 66d77079df
commit 740d17002e

View File

@@ -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