Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C97C69EA1 for ; Tue, 1 May 2012 18:51:10 +0000 (UTC) Received: (qmail 64631 invoked by uid 500); 1 May 2012 18:51:10 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 64519 invoked by uid 500); 1 May 2012 18:51:10 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 64450 invoked by uid 99); 1 May 2012 18:51:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 18:51:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 18:51:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id EE81A42AAF7 for ; Tue, 1 May 2012 18:50:48 +0000 (UTC) Date: Tue, 1 May 2012 18:50:48 +0000 (UTC) From: "Olivier Louvignes (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <388042424.13941.1335898248978.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1599292901.12896.1335869691466.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CB-614) New 1.7.0rc exception debugging seems broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265962#comment-13265962 ] Olivier Louvignes edited comment on CB-614 at 5/1/12 6:50 PM: -------------------------------------------------------------- Ok, great. Another test still on 1.7.0rc : {quote} function onDeviceReady() { // do your thing! //navigator.notification.alert("Cordova is working"); setTimeout(function(){ console.warn('doCrash'); var crash = foo.bar; }, 1500); } {quote} And the XCode console output {quote} 2012-05-01 20:46:31.413 Cordova-170rc[44171:13703] Multi-tasking -> Device: YES, App: YES 2012-05-01 20:46:31.939 Cordova-170rc[44171: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 20:46:34.015 Cordova-170rc[44171:15403] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: *** -[__NSArrayM objectAtIndex:]: index 50 beyond bounds [0 .. 42] 2012-05-01 20:46:34.016 Cordova-170rc[44171:13703] [WARN] doCrash {quote} was (Author: mgcrea): Ok, great. Another test still on 1.7.0rc : {quote} function onDeviceReady() { // do your thing! //navigator.notification.alert("Cordova is working"); setTimeout(function(){ console.warn('doCrash'); var crash = foo.bar; }, 1500); } {quote} And the XCode console output {quote} 2012-05-01 20:46:31.413 Cordova-170rc[44171:13703] Multi-tasking -> Device: YES, App: YES 2012-05-01 20:46:31.939 Cordova-170rc[44171: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 20:46:34.015 Cordova-170rc[44171:15403] *** WebKit discarded an uncaught exception in the webView:exceptionWasRaised:sourceId:line:forWebFrame: delegate: *** -[__NSArrayM objectAtIndex:]: index 50 beyond bounds [0 .. 42] 2012-05-01 20:46:34.016 Cordova-170rc[44171:13703] [WARN] doCrash {quote} > New 1.7.0rc exception debugging seems broken > -------------------------------------------- > > Key: CB-614 > URL: https://issues.apache.org/jira/browse/CB-614 > Project: Apache Callback > Issue Type: Bug > Components: iOS > Reporter: Olivier Louvignes > Labels: debugging, ios > > 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 > #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: [<__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