debugging – What do I have to add to the manifest to debug an Android application on an actual Device?-ThrowExceptions

Exception or error: What kind of permission/Flag do I have to add to the manifest to debug my application on an actual Android device? How to solve: Add android:debuggable=”true” to the <application> element More info here. ### You shold create a debug specific manifest file (typically in src/debug/AndroidManifest.xml). To avoid error: “Avoid hardcoding the debug …

Android: problem with debugging javascript in webview-ThrowExceptions

Exception or error: I have some javascript running in WebView, and I want to receive console messages about errors in JS. In accordance with the instructions at http://developer.android.com/guide/webapps/debugging.html I overrided methods WebChromeClient.onConsoleMessage(String message, int lineNumber, String sourceID) and WebChromeClient.onConsoleMessage(ConsoleMessage cm), redirecting messages to logcat. In android 2.1 it works well, but in android 2.2 none …

Hot swap debugging with Android-ThrowExceptions

Exception or error: 1) Is there any special setting/configuration required to enable hot swap debugging on Android? Example case: Add breakpoint just after entering activity’s onCreate method. Add new line on the fly after the breakpoint (dummy “if (1==1) return;” code) Step to next instruction –> Problem: my debugger doesn’t break at this line, instead …