2316 self.connectDebugger(port, remoteAddress, redirect) |
2317 self.connectDebugger(port, remoteAddress, redirect) |
2317 self.__interact() |
2318 self.__interact() |
2318 else: |
2319 else: |
2319 print("No network port given. Aborting...") |
2320 print("No network port given. Aborting...") |
2320 # __IGNORE_WARNING_M801__ |
2321 # __IGNORE_WARNING_M801__ |
2321 |
2322 |
2322 def close(self, fd): |
2323 def close(self, fd): |
2323 """ |
2324 """ |
2324 Public method implementing a close method as a replacement for |
2325 Public method implementing a close method as a replacement for |
2325 os.close(). |
2326 os.close(). |
2326 |
2327 |
2331 if fd in [self.readstream.fileno(), self.writestream.fileno(), |
2332 if fd in [self.readstream.fileno(), self.writestream.fileno(), |
2332 self.errorstream.fileno()]: |
2333 self.errorstream.fileno()]: |
2333 return |
2334 return |
2334 |
2335 |
2335 DebugClientOrigClose(fd) |
2336 DebugClientOrigClose(fd) |
2336 |
2337 |
2337 def __getSysPath(self, firstEntry): |
2338 def __getSysPath(self, firstEntry): |
2338 """ |
2339 """ |
2339 Private slot to calculate a path list including the PYTHONPATH |
2340 Private slot to calculate a path list including the PYTHONPATH |
2340 environment variable. |
2341 environment variable. |
2341 |
2342 |
2348 if "" in sysPath: |
2349 if "" in sysPath: |
2349 sysPath.remove("") |
2350 sysPath.remove("") |
2350 sysPath.insert(0, firstEntry) |
2351 sysPath.insert(0, firstEntry) |
2351 sysPath.insert(0, '') |
2352 sysPath.insert(0, '') |
2352 return sysPath |
2353 return sysPath |
|
2354 |
|
2355 def skipMultiProcessDebugging(self, scriptName): |
|
2356 """ |
|
2357 Public method to check, if the given script is eligible for debugging. |
|
2358 |
|
2359 @param scriptName name of the script to check |
|
2360 @type str |
|
2361 @return flag indicating eligibility |
|
2362 @rtype bool |
|
2363 """ |
|
2364 for pattern in self.noDebugList: |
|
2365 if fnmatch.fnmatch(scriptName, pattern): |
|
2366 return True |
|
2367 |
|
2368 return False |