Debugger/DebuggerInterfaceRuby.py

changeset 3354
8d69c9dfb5e2
parent 3345
071afe8be2a1
child 3356
22633c0739e2
equal deleted inserted replaced
3353:ddc966a494b0 3354:8d69c9dfb5e2
17 from . import DebugProtocol 17 from . import DebugProtocol
18 from . import DebugClientCapabilities 18 from . import DebugClientCapabilities
19 19
20 import Preferences 20 import Preferences
21 import Utilities 21 import Utilities
22 from Globals import isWindowsPlatform
22 23
23 from eric5config import getConfig 24 from eric5config import getConfig
24 25
25 26
26 ClientDefaultCapabilities = \ 27 ClientDefaultCapabilities = \
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

eric ide

mercurial