Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2936] iOS: debugging fails for this code

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2012-04-12T19:22:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterShannon Hicks
AssigneeEduardo Gomez
Created2012-01-24T10:03:20.000+0000
Updated2016-03-08T07:47:55.000+0000

Description

Add this line of code to a virgin app.js file:
var scripts = document.getElementsByTagName('script');
Debug the app in the iPhone simulator. Debugging stops on that line, as expected. If you hit continue, however, there is no Application Exception displayed. To see what kind of error should have been triggered, use this code:
var test1 = someVariablethatDoesntExist.doSomething();

Comments

  1. Eduardo Gomez 2012-04-06

    @Shannon Hicks Can you post what your console output is? Also, what does "hit continue" meant? Did you press "Resume", "Set Next statement", "Step into", "Step Over"?
  2. Shannon Hicks 2012-04-06

    resume
  3. Eduardo Gomez 2012-04-09

    Thanks Shannon. So can you confirm what your output console is? Besides what is the current iOS version (i.e. 4.3 / 5) that this was tested on?

JSON Source