Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4013] Debugger: Correctly scope variable info requests

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-05-20T12:41:42.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sRelease 1.7.0, Sprint 2011-19
ComponentsiOS
Labelsdebugger
ReporterStephen Tramer
AssigneeStephen Tramer
Created2011-05-09T14:26:02.000+0000
Updated2011-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).

Comments

  1. Stephen Tramer 2011-05-16

    QA Pass revealed that this still crashes according to test procedure.
  2. Natalie Huynh 2011-05-20

    Tested with May 19 2011 16:19 r592c8e01

JSON Source