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: 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?
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.
Step into code line by line To stop on each statement when you're debugging, use Debug > Step Into, or select F11.
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.
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 ...
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With