Debugger/DebugServer.py

changeset 5899
0516f6548ca6
parent 5859
28282fa0df7b
child 5929
4ce93da7616e
diff -r fc96d49f5fbf -r 0516f6548ca6 Debugger/DebugServer.py
--- a/Debugger/DebugServer.py	Mon Oct 09 19:06:46 2017 +0200
+++ b/Debugger/DebugServer.py	Tue Oct 10 19:05:00 2017 +0200
@@ -445,7 +445,7 @@
                 'DebugClient/Type', self.clientType)
         
     def startClient(self, unplanned=True, clType=None, forProject=False,
-                    runInConsole=False):
+                    runInConsole=False, interpreter=""):
         """
         Public method to start a debug client.
         
@@ -454,6 +454,8 @@
         @keyparam forProject flag indicating a project related action (boolean)
         @keyparam runInConsole flag indicating to start the debugger in a
             console window (boolean)
+        @keyparam interpreter interpreter to be used to execute the remote
+            side (string)
         """
         self.running = False
         
@@ -478,16 +480,16 @@
                 project = e5App().getObject("Project")
                 if not project.isDebugPropertiesLoaded():
                     self.clientProcess, isNetworked, clientInterpreter = \
-                        self.debuggerInterface.startRemote(self.serverPort(),
-                                                           runInConsole)
+                        self.debuggerInterface.startRemote(
+                            self.serverPort(), runInConsole, interpreter)
                 else:
                     self.clientProcess, isNetworked, clientInterpreter = \
                         self.debuggerInterface.startRemoteForProject(
-                            self.serverPort(), runInConsole)
+                            self.serverPort(), runInConsole, interpreter)
             else:
                 self.clientProcess, isNetworked, clientInterpreter = \
                     self.debuggerInterface.startRemote(
-                        self.serverPort(), runInConsole)
+                        self.serverPort(), runInConsole, interpreter)
             
             if self.clientProcess:
                 self.clientProcess.readyReadStandardError.connect(
@@ -798,13 +800,15 @@
                 pass
         self.debuggerInterface.remoteEnvironment(envdict)
         
-    def remoteLoad(self, fn, argv, wd, env, autoClearShell=True,
+    def remoteLoad(self, interpreter, fn, argv, wd, env, autoClearShell=True,
                    tracePython=False, autoContinue=True, forProject=False,
                    runInConsole=False, autoFork=False, forkChild=False,
                    clientType="", enableCallTrace=False):
         """
         Public method to load a new program to debug.
         
+        @param interpreter interpreter to be used to execute the remote
+            side (string)
         @param fn the filename to debug (string)
         @param argv the commandline arguments to pass to the program (string)
         @param wd the working directory for the program (string)
@@ -850,13 +854,14 @@
         self.__restoreBreakpoints()
         self.__restoreWatchpoints()
 
-    def remoteRun(self, fn, argv, wd, env, autoClearShell=True,
-                  forProject=False, runInConsole=False,
-                  autoFork=False, forkChild=False,
-                  clientType=""):
+    def remoteRun(self, interpreter, fn, argv, wd, env, autoClearShell=True,
+                  forProject=False, runInConsole=False, autoFork=False,
+                  forkChild=False, clientType=""):
         """
         Public method to load a new program to run.
         
+        @param interpreter interpreter to be used to execute the remote
+            side (string)
         @param fn the filename to run (string)
         @param argv the commandline arguments to pass to the program (string)
         @param wd the working directory for the program (string)
@@ -891,12 +896,14 @@
         self.debugging = False
         self.running = True
 
-    def remoteCoverage(self, fn, argv, wd, env, autoClearShell=True,
-                       erase=False, forProject=False, runInConsole=False,
-                       clientType=""):
+    def remoteCoverage(self, interpreter, fn, argv, wd, env,
+                       autoClearShell=True, erase=False, forProject=False,
+                       runInConsole=False, clientType=""):
         """
         Public method to load a new program to collect coverage data.
         
+        @param interpreter interpreter to be used to execute the remote
+            side (string)
         @param fn the filename to run (string)
         @param argv the commandline arguments to pass to the program (string)
         @param wd the working directory for the program (string)
@@ -930,13 +937,14 @@
         self.debugging = False
         self.running = True
 
-    def remoteProfile(self, fn, argv, wd, env, autoClearShell=True,
-                      erase=False, forProject=False,
-                      runInConsole=False,
-                      clientType=""):
+    def remoteProfile(self, interpreter, fn, argv, wd, env,
+                      autoClearShell=True, erase=False, forProject=False,
+                      runInConsole=False, clientType=""):
         """
         Public method to load a new program to collect profiling data.
         
+        @param interpreter interpreter to be used to execute the remote
+            side (string)
         @param fn the filename to run (string)
         @param argv the commandline arguments to pass to the program (string)
         @param wd the working directory for the program (string)

eric ide

mercurial