diff -r 4a9900aef04e -r 9a008ab4811b eric6/DebugClients/Python/DebugClientBase.py --- a/eric6/DebugClients/Python/DebugClientBase.py Sun Feb 16 16:14:25 2020 +0100 +++ b/eric6/DebugClients/Python/DebugClientBase.py Sun Feb 16 19:36:46 2020 +0100 @@ -33,6 +33,7 @@ from FlexCompleter import Completer from DebugUtilities import prepareJsonCommand from BreakpointWatch import Breakpoint, Watch +from MultiProcessDebugExtension import patchNewProcessFunctions if sys.version_info[0] == 2: from inspect import getargvalues, formatargvalues @@ -2285,6 +2286,7 @@ ) if not self.noencoding: self.__coding = self.defaultCoding + patchNewProcessFunctions(multiprocess, self) res = self.startProgInDebugger( args, wd, host, port, exceptions=exceptions, tracePython=tracePython, redirect=redirect, @@ -2296,6 +2298,10 @@ self.noencoding = True del sys.argv[1] + if sys.argv[1] == '--multiprocess': + self.multiprocessSupport = True + del sys.argv[1] + if sys.argv[1] == '': del sys.argv[1] @@ -2338,6 +2344,7 @@ if not self.noencoding: self.__coding = self.defaultCoding self.connectDebugger(port, remoteAddress, redirect) + patchNewProcessFunctions(self.multiprocessSupport, self) self.__interact() else: print("No network port given. Aborting...")