eric6/DebugClients/Python/DebugClientBase.py

branch
multi_processing
changeset 7872
433dacbfa456
parent 7871
eb65864ca038
child 7877
72386134c80a
equal deleted inserted replaced
7871:eb65864ca038 7872:433dacbfa456
2011 except IndexError: 2011 except IndexError:
2012 self.running = None 2012 self.running = None
2013 if self.running: 2013 if self.running:
2014 self.__setCoding(self.running) 2014 self.__setCoding(self.running)
2015 self.passive = passive 2015 self.passive = passive
2016 # if passive:
2017 # self.sendPassiveStartup(self.running, exceptions)
2018 self.__interact() 2016 self.__interact()
2019 2017
2020 # setup the debugger variables 2018 # setup the debugger variables
2021 self._fncache = {} 2019 self._fncache = {}
2022 self.dircache = [] 2020 self.dircache = []
2216 # __IGNORE_WARNING_M801__ 2214 # __IGNORE_WARNING_M801__
2217 elif "-m" in args: 2215 elif "-m" in args:
2218 print("Running module as a script is not supported. Aborting!") 2216 print("Running module as a script is not supported. Aborting!")
2219 # __IGNORE_WARNING_M801__ 2217 # __IGNORE_WARNING_M801__
2220 else: 2218 else:
2221 # Store options if a process is spawn 2219 # Store options in case a new Python process is created
2222 # TODO: check which ones are really needed
2223 self.startOptions = ( 2220 self.startOptions = (
2224 wd, host, port, exceptions, tracePython, redirect, 2221 wd, host, port, exceptions, tracePython, redirect,
2225 self.noencoding, 2222 self.noencoding,
2226 ) 2223 )
2227 if not self.noencoding: 2224 if not self.noencoding:
2228 self.__coding = self.defaultCoding 2225 self.__coding = self.defaultCoding
2229 patchNewProcessFunctions(multiprocess, self) 2226 patchNewProcessFunctions(multiprocess, self)
2230 if hasCode: 2227 if hasCode:
2231 codeStr = args.pop(0) 2228 codeStr = args.pop(0)
2232 else: 2229 else:
2233 codeStr="" 2230 codeStr = ""
2234 res = self.startProgInDebugger( 2231 res = self.startProgInDebugger(
2235 args, wd, host, port, exceptions=exceptions, 2232 args, wd, host, port, exceptions=exceptions,
2236 tracePython=tracePython, redirect=redirect, 2233 tracePython=tracePython, redirect=redirect,
2237 passive=passive, multiprocessSupport=multiprocess, 2234 passive=passive, multiprocessSupport=multiprocess,
2238 codeStr=codeStr 2235 codeStr=codeStr
2278 sys.argv = [''] 2275 sys.argv = ['']
2279 if '' not in sys.path: 2276 if '' not in sys.path:
2280 sys.path.insert(0, '') 2277 sys.path.insert(0, '')
2281 2278
2282 if port >= 0: 2279 if port >= 0:
2283 # Store options if a process is spawn 2280 # Store options in case a new Python process is created
2284 # TODO: check which ones are really needed
2285 self.startOptions = ( 2281 self.startOptions = (
2286 '', remoteAddress, port, True, False, redirect, 2282 '', remoteAddress, port, True, False, redirect,
2287 self.noencoding, 2283 self.noencoding,
2288 ) 2284 )
2289 if not self.noencoding: 2285 if not self.noencoding:

eric ide

mercurial