diff -r 22633c0739e2 -r 2390df6f42ba Debugger/DebuggerInterfacePython3.py --- a/Debugger/DebuggerInterfacePython3.py Tue Mar 11 18:56:38 2014 +0100 +++ b/Debugger/DebuggerInterfacePython3.py Tue Mar 11 20:07:05 2014 +0100 @@ -147,8 +147,9 @@ @param port portnumber the debug server is listening on (integer) @param runInConsole flag indicating to start the debugger in a console window (boolean) - @return client process object (QProcess) and a flag to indicate - a network connection (boolean) + @return client process object (QProcess), a flag to indicate + a network connection (boolean) and the name of the interpreter + in case of a local execution (string) """ if Preferences.getDebugger("CustomPython3Interpreter"): interpreter = Preferences.getDebugger("Python3Interpreter") @@ -206,7 +207,7 @@ self.translate = self.__remoteTranslation else: self.translate = self.__identityTranslation - return process, self.__isNetworked + return process, self.__isNetworked, "" # set translation function self.translate = self.__identityTranslation @@ -243,7 +244,7 @@ self.tr( """<p>The debugger backend could not be""" """ started.</p>""")) - return process, self.__isNetworked + return process, self.__isNetworked, interpreter process = self.__startProcess( interpreter, @@ -255,7 +256,7 @@ self.tr("Start Debugger"), self.tr( """<p>The debugger backend could not be started.</p>""")) - return process, self.__isNetworked + return process, self.__isNetworked, interpreter def startRemoteForProject(self, port, runInConsole): """ @@ -264,12 +265,13 @@ @param port portnumber the debug server is listening on (integer) @param runInConsole flag indicating to start the debugger in a console window (boolean) - @return client process object (QProcess) and a flag to indicate - a network connection (boolean) + @return client process object (QProcess), a flag to indicate + a network connection (boolean) and the name of the interpreter + in case of a local execution (string) """ project = e5App().getObject("Project") if not project.isDebugPropertiesLoaded(): - return None, self.__isNetworked + return None, self.__isNetworked, "" # start debugger with project specific settings interpreter = project.getDebugProperty("INTERPRETER") @@ -307,7 +309,7 @@ self.translate = self.__remoteTranslation else: self.translate = self.__identityTranslation - return process, self.__isNetworked + return process, self.__isNetworked, "" # set translation function self.translate = self.__identityTranslation @@ -345,7 +347,7 @@ self.tr( """<p>The debugger backend could not be""" """ started.</p>""")) - return process, self.__isNetworked + return process, self.__isNetworked, interpreter process = self.__startProcess( interpreter, @@ -357,7 +359,7 @@ self.tr("Start Debugger"), self.tr( """<p>The debugger backend could not be started.</p>""")) - return process, self.__isNetworked + return process, self.__isNetworked, interpreter def getClientCapabilities(self): """