incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [3/3] ios commit: Added doc for CB-535 - JavaScript Exception Logging
Date Mon, 23 Apr 2012 19:29:44 GMT
Added doc for CB-535 - JavaScript Exception Logging


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/7f3805d1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/7f3805d1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/7f3805d1

Branch: refs/heads/master
Commit: 7f3805d1719a8cc43f1f9487c95b810c5c25787f
Parents: 5d2e804
Author: Shazron Abdullah <shazron@apache.org>
Authored: Mon Apr 23 12:28:14 2012 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Mon Apr 23 12:28:14 2012 -0700

----------------------------------------------------------------------
 guides/Cordova JavaScript Exception Logging.md |   21 +++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/7f3805d1/guides/Cordova
JavaScript Exception Logging.md
----------------------------------------------------------------------
diff --git a/guides/Cordova JavaScript Exception Logging.md b/guides/Cordova JavaScript Exception
Logging.md
new file mode 100644
index 0000000..630a134
--- /dev/null
+++ b/guides/Cordova JavaScript Exception Logging.md	
@@ -0,0 +1,21 @@
+# Cordova JavaScript Exception Logging #
+
+In Cordova 1.7.0, adding a few files to your project will enable you to effectively log JavaScript
errors to your console at a lower level, without using JavaScript code (window.onerror, console.log).
+
+NOTE: when you include these files, it will **always pop up a warning dialog at startup**,
to remind you that you have these classes included. This is to prevent you from inadvertently
shipping this code for the App Store, where this code is not allowed (it uses a private interface).
+
+1. Install **Cordova 1.7.0**
+2. In your app, add the whole **debugview** folder from  **~/Documents/CordovaLib/Classes/debugview**
(where ~ signifies your Home folder). Make sure you select the radiobutton - **"Create groups
for any added folders"**
+3. In your app's **MainViewController.m**, uncomment/add this code:
+
+        - (CDVCordovaView*) newCordovaViewWithFrame:(CGRect)bounds
+        {
+            return [[CDVDebugWebView alloc] initWithFrame:bounds];
+        }
+        
+
+
+ 
+
+
+


Mime
View raw message