Affects Version/s: Release 2.1.2, Release 2.1.3, Release 3.0.0
Fix Version/s: None
Titanium SDK: 2.1.2.GA, 2.1.3.v20120925134611, 3.0.0.v20120925124913
Titanium Studio: 2.1.2, 22.214.171.124209252419
OS: Mountain Lion 10.8.2
Device: Android Emulator 2.3.3
Breakpoints at global unassigned variable declarations are skipped and hit at next statement instead. However, unassigned variable declarations in anonymous functions are correctly hit.
Running this code in debug mode will result in the first breakpoint being hit at the next statement (e.g., 'var deadVar1' stops at 'Ti.API.info('Global Variables Defined!')').
Steps to Reproduce:
1. Run code in debug (manually insert breakpoints as per code comments):
App skips the first breakpoint, but stops at the next statement.
Pressing 'Resume' will correctly hit the unassigned variable in the anonymous function.
The first breakpoint should be hit and pressing 'Resume' should hit the next breakpoint.
Here is the expected console log for the sample code: