How to set breakpoints in class files without the source in Android Studio?

Question!

The class file is contained in a jar archive (which I don't have the source) and I can view that file like an ordinary Java file in Android Studio by the built-in de-compiler feature. I set breakpoints in that class file and started debugging but it didn't stop at the lines marked by breakpoints. Is there any way to do that?

enter image description here



Answers
There was an Android bug raised for the same. Please check if any of the solution works for you from following official developer.android bug tracker link

https://code.google.com/p/android/issues/detail?id=81439

By : Rakesh


This video can help you solving your question :)
By: admin