android studio 应用程序崩溃后错误日志和进程自动清除

error log and process automatically clear after app crash in android studio

你好,我在 mac

上更新了我的 android studio
Android Studio 4.1
Build #AI-201.8743.12.41.6858069, built on September 23, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.7
GC: ParNew, ConcurrentMarkSweep
Memory: 2014M
Cores: 4
Registry: ide.new.welcome.screen.force=true
Non-Bundled Plugins: org.jetbrains.kotlin

更新后 Android Studio 4.1 我在 Logcat

中发现了问题

I Am Not Able To See My debuggable Process After App Crash in Logcat

每当我的应用程序在移动设备上崩溃时,新进程启动就可以了

但旧的可调试进程未显示在下拉选择中....因此我无法跟踪我的崩溃或错误

在随附的屏幕截图中进程号:- 9018 是新进程,旧进程已从下拉列表中消失

在 Logcat 中设置包过滤器以显示您的应用程序包的错误消息。

打开 Logcat,单击“编辑过滤器配置”。 然后,在 Filter Name 中填写要过滤的包名。接下来,添加包名称并单击确定。

下图为示例

瞧,它现在应该可以在不清除 Logcat 输出的情况下工作了。