Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5488] iOS: Debugger: Breakpoint conditions with failures should report an error in the debugger console, but still break

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-03-26T20:12:47.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sRelease 2.0.0, Sprint 2012-07
ComponentsiOS
Labelsn/a
ReporterNatalie Huynh
AssigneeStephen Tramer
Created2011-10-10T10:17:35.000+0000
Updated2012-03-28T09:32:10.000+0000

Description

Steps to Reproduce: 1. Copy the following code to app.js
for (var i = 0; i < 10; i++) {
    Ti.API.debug("Hello: " + i);
}
2. Set breakpoint on the Ti.API.debug statement 3. Right click on the breakpoint and go to Breakpoint Properties... 4. Select Enable Condition 5. Enter i == 6. Run in debug Actual: Breakpoint hits, error not printed to console Expected: Breakpoint should hit with exception Console should print "ERROR Compilation produced 3 syntax errors. ()"

Comments

  1. Natalie Huynh 2011-10-10

    Bug filed against android initially, fixed on android.
  2. Stephen Tramer 2012-03-26

    Fixed as part of TIMOB-8313, moving into appropriate sprint
  3. Natalie Huynh 2012-03-28

    Tested with 2.0.0.v20120328000206 on Mac 10.6.8 returns: [ERROR] Breakpoint expression error: (function(){return i == })(); according to stramer: Those are interpreter and implementation differences, not much we can do about it

JSON Source