DebugClients/Python3/DebugClientBase.py

branch
5_3_x
changeset 2639
d9c43b41da5b
parent 2487
75ee609c3241
child 2761
bcc10ef7015d
equal deleted inserted replaced
2638:11b930473425 2639:d9c43b41da5b
1239 1239
1240 @param frmnr distance of frame reported on. 0 is the current frame (int) 1240 @param frmnr distance of frame reported on. 0 is the current frame (int)
1241 @param scope 1 to report global variables, 0 for local variables (int) 1241 @param scope 1 to report global variables, 0 for local variables (int)
1242 @param filter the indices of variable types to be filtered (list of int) 1242 @param filter the indices of variable types to be filtered (list of int)
1243 """ 1243 """
1244 if self.currentThread is None:
1245 return
1246
1244 if scope == 0: 1247 if scope == 0:
1245 self.framenr = frmnr 1248 self.framenr = frmnr
1246 1249
1247 f = self.currentThread.getCurrentFrame() 1250 f = self.currentThread.getCurrentFrame()
1248 1251
1278 @param var list encoded name of the requested variable (list of strings) 1281 @param var list encoded name of the requested variable (list of strings)
1279 @param frmnr distance of frame reported on. 0 is the current frame (int) 1282 @param frmnr distance of frame reported on. 0 is the current frame (int)
1280 @param scope 1 to report global variables, 0 for local variables (int) 1283 @param scope 1 to report global variables, 0 for local variables (int)
1281 @param filter the indices of variable types to be filtered (list of int) 1284 @param filter the indices of variable types to be filtered (list of int)
1282 """ 1285 """
1286 if self.currentThread is None:
1287 return
1288
1283 f = self.currentThread.getCurrentFrame() 1289 f = self.currentThread.getCurrentFrame()
1284 1290
1285 while f is not None and frmnr > 0: 1291 while f is not None and frmnr > 0:
1286 f = f.f_back 1292 f = f.f_back
1287 frmnr -= 1 1293 frmnr -= 1

eric ide

mercurial