1229 |
1229 |
1230 @param frmnr distance of frame reported on. 0 is the current frame (int) |
1230 @param frmnr distance of frame reported on. 0 is the current frame (int) |
1231 @param scope 1 to report global variables, 0 for local variables (int) |
1231 @param scope 1 to report global variables, 0 for local variables (int) |
1232 @param filter the indices of variable types to be filtered (list of int) |
1232 @param filter the indices of variable types to be filtered (list of int) |
1233 """ |
1233 """ |
|
1234 if self.currentThread is None: |
|
1235 return |
|
1236 |
1234 if scope == 0: |
1237 if scope == 0: |
1235 self.framenr = frmnr |
1238 self.framenr = frmnr |
1236 |
1239 |
1237 f = self.currentThread.getCurrentFrame() |
1240 f = self.currentThread.getCurrentFrame() |
1238 |
1241 |
1268 @param var list encoded name of the requested variable (list of strings) |
1271 @param var list encoded name of the requested variable (list of strings) |
1269 @param frmnr distance of frame reported on. 0 is the current frame (int) |
1272 @param frmnr distance of frame reported on. 0 is the current frame (int) |
1270 @param scope 1 to report global variables, 0 for local variables (int) |
1273 @param scope 1 to report global variables, 0 for local variables (int) |
1271 @param filter the indices of variable types to be filtered (list of int) |
1274 @param filter the indices of variable types to be filtered (list of int) |
1272 """ |
1275 """ |
|
1276 if self.currentThread is None: |
|
1277 return |
|
1278 |
1273 f = self.currentThread.getCurrentFrame() |
1279 f = self.currentThread.getCurrentFrame() |
1274 |
1280 |
1275 while f is not None and frmnr > 0: |
1281 while f is not None and frmnr > 0: |
1276 f = f.f_back |
1282 f = f.f_back |
1277 frmnr -= 1 |
1283 frmnr -= 1 |