Commit 1fd37e6c9948c429fa2a2fd4febc046432983d76
- Date: Wed May 07 00:43:42 +0000 2008
- Committer: Tim Harper (timcharper@gmail.com)
- Author: Tim Harper (timcharper@gmail.com)
- Commit SHA1: 1fd37e6c9948c429fa2a2fd4febc046432983d76
- Tree SHA1: a16c0b0a4332625f5de192d681e65f9d3fa8db09
added quarter second sleep on launching terminal debug client to prevent it from trying to connect before the server is setup
Commit diff
| |   |
| 6 | 6 | def open_controller_terminal |
| 7 | 7 | term = Appscript::app("Terminal") |
| 8 | 8 | term.activate |
| 9 | | term.do_script "cd #{ENV['TM_PROJECT_DIRECTORY'].to_s.inspect} && rdebug -c; exit" |
| 9 | term.do_script "cd #{ENV['TM_PROJECT_DIRECTORY'].to_s.inspect} && sleep 0.25 && rdebug -c; exit" |
| 10 | 10 | end |
| 11 | 11 | |
| 12 | 12 | def open_debug_process_in_terminal(file_to_run) |
| toggle raw diff |
--- a/Support/lib/ruby_amp/launcher.rb
+++ b/Support/lib/ruby_amp/launcher.rb
@@ -6,7 +6,7 @@ module RubyAMP
def open_controller_terminal
term = Appscript::app("Terminal")
term.activate
- term.do_script "cd #{ENV['TM_PROJECT_DIRECTORY'].to_s.inspect} && rdebug -c; exit"
+ term.do_script "cd #{ENV['TM_PROJECT_DIRECTORY'].to_s.inspect} && sleep 0.25 && rdebug -c; exit"
end
def open_debug_process_in_terminal(file_to_run) |