Debugger/DebuggerInterfaceRuby.py

changeset 3354
8d69c9dfb5e2
parent 3345
071afe8be2a1
child 3356
22633c0739e2
diff -r ddc966a494b0 -r 8d69c9dfb5e2 Debugger/DebuggerInterfaceRuby.py
--- a/Debugger/DebuggerInterfaceRuby.py	Sun Mar 09 19:04:42 2014 +0100
+++ b/Debugger/DebuggerInterfaceRuby.py	Mon Mar 10 19:22:15 2014 +0100
@@ -19,6 +19,7 @@
 
 import Preferences
 import Utilities
+from Globals import isWindowsPlatform
 
 from eric5config import getConfig
 
@@ -142,8 +143,15 @@
             a network connection (boolean)
         """
         interpreter = Preferences.getDebugger("RubyInterpreter")
+        if interpreter == "" and not isWindowsPlatform():
+            interpreter = "/usr/bin/ruby"
         if interpreter == "":
-            interpreter = "/usr/bin/ruby"
+            E5MessageBox.critical(
+                None,
+                self.tr("Start Debugger"),
+                self.tr("""<p>No Ruby interpreter configured.</p>"""))
+            return None, False
+        
         debugClient = os.path.join(
             getConfig('ericDir'), "DebugClients", "Ruby", "DebugClient.rb")
         

eric ide

mercurial