[AC-2936] iOS: debugging fails for this code
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2012-04-12T19:22:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Shannon Hicks |
Assignee | Eduardo Gomez |
Created | 2012-01-24T10:03:20.000+0000 |
Updated | 2016-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();
@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"?
resume
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?