--- a/eric6/DebugClients/Python/MultiProcessDebugExtension.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/DebugClients/Python/MultiProcessDebugExtension.py Sun Apr 11 18:45:10 2021 +0200 @@ -306,20 +306,23 @@ frame = None # Just make sure we don't hold on to it. childProcess = getattr(os, originalName)() # fork - if not childProcess and not isMultiprocessingPopen: - if isNewPythonProcess: - (wd, host, port, exceptions, tracePython, redirect, - noencoding) = _debugClient.startOptions - _debugClient.startDebugger( - filename=sys.argv[0], - host=host, - port=port, - enableTrace=multiprocess and not isSubprocessFork, - exceptions=exceptions, - tracePython=tracePython, - redirect=redirect, - passive=False, - multiprocessSupport=multiprocess) + if ( + not childProcess and + not isMultiprocessingPopen and + isNewPythonProcess + ): + (wd, host, port, exceptions, tracePython, redirect, + noencoding) = _debugClient.startOptions + _debugClient.startDebugger( + filename=sys.argv[0], + host=host, + port=port, + enableTrace=multiprocess and not isSubprocessFork, + exceptions=exceptions, + tracePython=tracePython, + redirect=redirect, + passive=False, + multiprocessSupport=multiprocess) return childProcess return newFork