DebugClients/Python/DebugClientBase.py

branch
debugger speed
changeset 5048
9899fb545b1f
parent 5046
d57f18f15f1a
child 5049
e1d22c4b0be0
equal deleted inserted replaced
5046:d57f18f15f1a 5048:9899fb545b1f
1265 return afn 1265 return afn
1266 1266
1267 # Nothing found. 1267 # Nothing found.
1268 return fn 1268 return fn
1269 1269
1270 def shouldSkip(self, fn):
1271 """
1272 Public method to check if a file should be skipped.
1273
1274 @param fn filename to be checked
1275 @return non-zero if fn represents a file we are 'skipping',
1276 zero otherwise.
1277 """
1278 if self.mainThread.tracePython: # trace into Python library
1279 return 0
1280
1281 # Eliminate anything that is part of the Python installation.
1282 afn = self.absPath(fn)
1283 for d in self.skipdirs:
1284 if afn.startswith(d):
1285 return 1
1286
1287 # special treatment for paths containing site-packages or dist-packages
1288 for part in ["site-packages", "dist-packages"]:
1289 if part in afn:
1290 return 1
1291
1292 return 0
1293
1294 def getRunning(self): 1270 def getRunning(self):
1295 """ 1271 """
1296 Public method to return the main script we are currently running. 1272 Public method to return the main script we are currently running.
1297 1273
1298 @return flag indicating a running debug session (boolean) 1274 @return flag indicating a running debug session (boolean)

eric ide

mercurial