140 console window (boolean) |
141 console window (boolean) |
141 @return client process object (QProcess) and a flag to indicate |
142 @return client process object (QProcess) and a flag to indicate |
142 a network connection (boolean) |
143 a network connection (boolean) |
143 """ |
144 """ |
144 interpreter = Preferences.getDebugger("RubyInterpreter") |
145 interpreter = Preferences.getDebugger("RubyInterpreter") |
|
146 if interpreter == "" and not isWindowsPlatform(): |
|
147 interpreter = "/usr/bin/ruby" |
145 if interpreter == "": |
148 if interpreter == "": |
146 interpreter = "/usr/bin/ruby" |
149 E5MessageBox.critical( |
|
150 None, |
|
151 self.tr("Start Debugger"), |
|
152 self.tr("""<p>No Ruby interpreter configured.</p>""")) |
|
153 return None, False |
|
154 |
147 debugClient = os.path.join( |
155 debugClient = os.path.join( |
148 getConfig('ericDir'), "DebugClients", "Ruby", "DebugClient.rb") |
156 getConfig('ericDir'), "DebugClients", "Ruby", "DebugClient.rb") |
149 |
157 |
150 redirect = str(Preferences.getDebugger("RubyRedirect")) |
158 redirect = str(Preferences.getDebugger("RubyRedirect")) |
151 |
159 |