38 Module function to get characterising data for the debugger interface. |
37 Module function to get characterising data for the debugger interface. |
39 |
38 |
40 @return list of the following data. Client type (string), client |
39 @return list of the following data. Client type (string), client |
41 capabilities (integer), client type association (list of strings) |
40 capabilities (integer), client type association (list of strings) |
42 """ |
41 """ |
43 return ["Ruby", ClientDefaultCapabilities, ClientTypeAssociations] |
42 if Preferences.getDebugger("RubyInterpreter"): |
|
43 return ["Ruby", ClientDefaultCapabilities, ClientTypeAssociations] |
|
44 else: |
|
45 return ["", 0, []] |
44 |
46 |
45 |
47 |
46 class DebuggerInterfaceRuby(QObject): |
48 class DebuggerInterfaceRuby(QObject): |
47 """ |
49 """ |
48 Class implementing the Ruby debugger interface for the debug server. |
50 Class implementing the Ruby debugger interface for the debug server. |
141 console window (boolean) |
143 console window (boolean) |
142 @return client process object (QProcess) and a flag to indicate |
144 @return client process object (QProcess) and a flag to indicate |
143 a network connection (boolean) |
145 a network connection (boolean) |
144 """ |
146 """ |
145 interpreter = Preferences.getDebugger("RubyInterpreter") |
147 interpreter = Preferences.getDebugger("RubyInterpreter") |
146 if interpreter == "" and not isWindowsPlatform(): |
|
147 interpreter = "/usr/bin/ruby" |
|
148 if interpreter == "": |
148 if interpreter == "": |
149 E5MessageBox.critical( |
149 E5MessageBox.critical( |
150 None, |
150 None, |
151 self.tr("Start Debugger"), |
151 self.tr("Start Debugger"), |
152 self.tr("""<p>No Ruby interpreter configured.</p>""")) |
152 self.tr("""<p>No Ruby interpreter configured.</p>""")) |