intellij idea - Breakpoints not getting hit in Android Studio -


I am using Windows 7 and recently switched from Eclipse to Android studio. I am having trouble in debugging now.

To run Android Studio 0.8.6, I establish a completely default installation, I am creating a new blank project, targeting the ICS SDK using the new project wizard. I then put a breakpoint on the street, click the debug button and run it.

Debugger is attached because I can see the message "Connecting to target VM" in the debugger window.

I know the code is being executed because I am updating some text in the UI to show it.

I have tried to put breakpoints in many places but no hits have happened.

My hair is pulling out here because I can not see what I am doing wrong. I'm gradually new, so I think there might be some setting in Grendel that I should change, but surely one of the very standard projects created with the wizard should allow me to kill the breakpoint?

One thing I have noticed is that there is no mention of any debug build in my build.gradle file, only one release. I wonder if this could be the problem?

buildTypes {release {runProguard false proguardFiles getDefaultProguardFile ('proguard-android.txt'), 'proguard-rules.pro'}}

Note I have tried this on my device and the emulator

update:

I changed the settings in View Breakpoint options to turn on the "Java exception community", but only exceptions For exceptions. Then, at the end of the creation, I deliberately made the cause of a nullipoenter exception. Even when I now run in debug, I did not hit my actual code and did not see code breaks on my source, but the program stops. I know that this is my NullPointerException which is causing this because when I remove it, I can see that the code continues and does not break.

At this point that my code breaks the debug window. I can not see any more information from this "main" thread, called "performance launch activity". Probably, I'm debugging through any level of code that is calling Last Activity but my source is being considered as I can not move through it?

Ensure that your JDK is the latest and only one JDK in your system.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -