diff -r 663f1c3d6f53 -r bf6be3cff6cf eric6/DebugClients/Python/DebugClientBase.py --- a/eric6/DebugClients/Python/DebugClientBase.py Sat Feb 08 17:02:40 2020 +0100 +++ b/eric6/DebugClients/Python/DebugClientBase.py Sun Feb 09 19:27:49 2020 +0100 @@ -2013,20 +2013,27 @@ def startDebugger(self, filename=None, host=None, port=None, enableTrace=True, exceptions=True, tracePython=False, - redirect=True): + redirect=True, passive=True): """ Public method used to start the remote debugger. - @param filename the program to be debugged (string) - @param host hostname of the debug server (string) - @param port portnumber of the debug server (int) - @param enableTrace flag to enable the tracing function (boolean) + @param filename the program to be debugged + @type str + @param host hostname of the debug server + @type str + @param port portnumber of the debug server + @type int + @param enableTrace flag to enable the tracing function + @type bool @param exceptions flag to enable exception reporting of the IDE - (boolean) + @type bool @param tracePython flag to enable tracing into the Python library - (boolean) + @type bool @param redirect flag indicating redirection of stdin, stdout and - stderr (boolean) + stderr + @type bool + @param passive flag indicating a passive debugging session + @type bool """ if host is None: host = os.getenv('ERICHOST', 'localhost') @@ -2044,8 +2051,9 @@ self.running = None if self.running: self.__setCoding(self.running) - self.passive = True - self.sendPassiveStartup(self.running, exceptions) + self.passive = passive + if passive: + self.sendPassiveStartup(self.running, exceptions) self.__interact() # setup the debugger variables @@ -2304,6 +2312,13 @@ sys.settrace(None) sys.setprofile(None) self.sessionClose(False) +## (wd, host, port, exceptions, tracePython, redirect, +## noencoding, fork_auto, fork_child) = self.startOptions +## self.startDebugger(sys.argv[0], host, port, +## exceptions=exceptions, +## tracePython=tracePython, +## redirect=redirect, +## passive=False) else: # parent if self.fork_child: