[英]How to make breakpoints in Runnable() break in Android studio?
I have checked quite a few related SO posts, but been unable to get I am looking for. 我已经检查了很多相关的SO帖子,但无法获取我正在寻找的帖子。 My question is very simple and straightforward.
我的问题很简单明了。 Here is the code:
这是代码:
new Thread(new Runnable() {
@Override
public void run() {
android.util.Log.d("Debug", "*****breakpoint******");
}
}).start();
I have set a breakpoint at android.util.Log.d(), so I know it is executed, but it never breaks. 我在android.util.Log.d()处设置了一个断点,所以我知道它已执行,但它永不中断。 Breakpoints in other places work fine.
在其他地方的断点工作正常。 I am running Android Studio 1.5.1 on Windows 10. I am using an emulator to do the test.
我正在Windows 10上运行Android Studio 1.5.1。我正在使用模拟器进行测试。
Could anyone offer a tip on this? 有人可以给这个小费吗?
Per request, the following are screenshots of the code and logcat respectively: 根据请求,以下分别是代码和logcat的屏幕截图:
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config1
debuggable false
}
debug {
minifyEnabled false
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.