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: |