Seemingly useless debugging environment for Android
- by mikeY
I've just started debugging my first three line long android app and I can't seem to use the debug tool like I want to.
Here's my code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
int a = 1 / 0;
}
Now I expect the debugger to halt the thread and show me the line number of statement where the division by zero occurs. No, instead it shows some other method internal to the system for which I have no source. To make the matters worse, there is no exception message either.
Prior to this app, I created one which would do something when a button was pressed. If any exception was raised, again no useful line number or exception message would be shown.
As of right now, there is no way to debug my app. Any ideas?
I'm using the latest SDK along with Eclipse ADT plugin and debugging on a real device (Nexus One).