Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The first line breakpoint works only

I am developing in Android Studio (i've used IntelliJ IDEA + SDK) I've encountered debugging problem. All my breakpoints don't work in all projects. Exclusion is the breakpoint on the first line of a method for example: enter image description here Breakpoint on line 1 works, on line 2 doesn't breakpoint's Hint tells that no sources found for this line. It seems like proguard is enabled, but it doesn't.

I have tried create new empty project (Gradle). It is also not working. Have You any idea?

like image 794
rminko Avatar asked Nov 24 '13 19:11

rminko


People also ask

Why is my breakpoint not working?

If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.

How to go to next line while debugging in Visual Studio?

Step into code line by line To stop on each statement when you're debugging, use Debug > Step Into, or select F11.

How breakpoint works in Visual Studio?

To set a breakpoint in source code: Click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.

How to Debug line by line?

Click the Debug | Step Into menu item or press the F11 key to step into any property or method for debugging. You can then continue the line by line execution by pressing F10 or continue ...


1 Answers

I've solved the problem. I was running debugging on a real device (Nexus 4 with Android 4.4 KitKat). And I' have enabled ART instead Dalvik on the device. All breakpoint start to work when i've switched back to Dalvik.

like image 134
rminko Avatar answered Sep 24 '22 14:09

rminko