[
https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271946#comment-13271946
]
max ogden commented on CB-614:
------------------------------
On a freshly compiled cordova (git ref
85f8ef73f965a07c6cf5b18f98b2bf02671fb38f) and a brand new project I get the
following after enabling debugging via the Cordova JavaScript Exception Logging
guide:
2012-05-09 16:33:05.486 tes.test.test[5858:13403] Multi-tasking -> Device: YES,
App: YES
2012-05-09 16:33:06.034 tes.test.test[5858:13403] JavaScript exception:
(obj-c):1 - ReferenceError - Can't find variable: cordova
Function name: '(null)' Line: 'cordova.fireDocumentEvent('active');'
wait_fences: failed to receive reply: 10004003
> New 1.7.0rc exception debugging seems broken
> --------------------------------------------
>
> Key: CB-614
> URL: https://issues.apache.org/jira/browse/CB-614
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Reporter: Olivier Louvignes
> Assignee: Shazron Abdullah
> Labels: debugging, ios
> Fix For: 1.8.0
>
>
> I'm trying to use/test the new awesome exception debugging for Cordova that
> shipped with 1.7.0rc1
> First of all, "CDVDebugWebView.m" would not compile with packaged version
> without this conditional in the header:
> {quote}
> #ifdef CORDOVA_FRAMEWORK
> #import <Cordova/CDVCordovaView.h>
> #else
> #import "CDVCordovaView.h"
> #endif
> {quote}
> By the way, using "CDVDebugWebView.m" instead of "CDVDebugWebView.h" did not
> work in my case (i get a file not found error) while it seems to work with
> the .h import. (comment in
> https://github.com/apache/incubator-cordova-ios/commit/f22c4f218bd79825c9d96a23eb38b7d69f2b6f32)
> Then when it compiles, it appears to be enabled (get two popups, cordova is
> working & cordova is in debug mode).
> However I get this error in Xcode :
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device:
> YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception:
> (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> {quote}
> Finally when trying to throw some exception, i just replace in given
> index.html "navigator.notification.alert("Cordova is working")" by "throw
> "test trace";"
> {quote}
> 2012-05-01 12:45:13.359 Cordova-1.7.0rc[13839:13703] Multi-tasking -> Device:
> YES, App: YES
> 2012-05-01 12:45:13.901 Cordova-1.7.0rc[13839:13703] JavaScript exception:
> (obj-c):1 - ReferenceError - Can't find variable: cordova
> Line: cordova.fireDocumentEvent('active');
> wait_fences: failed to receive reply: 10004003
> 2012-05-01 12:45:14.547 Cordova-1.7.0rc[13839:13703] *** WebKit discarded an
> uncaught exception in the
> webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate:
> <NSUnknownKeyException> [<__NSCFString 0x98cc160> valueForUndefinedKey:]:
> this class is not key value coding-compliant for the key name.
> 2012-05-01 12:45:14.549 Cordova-1.7.0rc[13839:13703] [INFO] Error in success
> callback: NetworkStatus0 = test trace
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira