[TIMOB-4013] Debugger: Correctly scope variable info requests
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-20T12:41:42.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Release 1.7.0, Sprint 2011-19 |
Components | iOS |
Labels | debugger |
Reporter | Stephen Tramer |
Assignee | Stephen Tramer |
Created | 2011-05-09T14:26:02.000+0000 |
Updated | 2011-05-20T12:41:42.000+0000 |
Description
For finding property values in frames:
We have to handle the following nasty connundrum:
function(x) { setTimeout(function() { Ti.API.info(x); }, 10000); }
Here, the IDE will make a request for frame[0].x if we have the variable highlighted PRIOR to the timeout callback (and this is the correct frame; the callback will be frame[0] unless it's initiated at some weird time) but x is not in the current scope chain - it is in the previous scope chain (due to the fact that the timeout function is a closure).
QA Pass revealed that this still crashes according to test procedure.
Tested with May 19 2011 16:19 r592c8e01