机器人工作室,logcat的清理应用程序关闭后,机器人、应用程序、工作室、logcat

2023-09-05 05:47:45 作者:灵儿

我在使用,因为更新1.2Beta Android的工作室我logcat中的一个问题。当我运行我的应用程序,它记录的一切像它通常那样,然后我得到的地步,我的应用程序崩溃的应用程序,说:不幸的是,游戏已经停止

I'm having a problem with my logcat since update 1.2Beta for Android Studio. When i run my app it logs everything like it normally did, then i get at the point where my app crashes with the app saying: unfortunately, Game has stopped.

几秒钟后,机器人将关闭该消息。当这种情况发生我的logcat还可以得到完全清除这意味着我几乎不能随时读取错误。我也发现一个缓冲区一些信息,但似乎机器人工作室并没有增加它除了事实,我怀疑这是问题的选项。

After a few seconds android closes that message. when that happens my logcat also get fully cleared meaning that i barely get anytime to read the error. I did found some info about a buffer, but it seems that android studio doesn't have the option to increase it besides the fact that i doubt that being the problem.

东西,可能是有用的,它会清除和东西的过程变为Android.process.acore后TE消息我在我的logcat是:10月4号至13日:28:13.394 12259-12265 / android.process。 ACORE D / dalvikvm:调试器分离;对象注册了1项

Something that may be useful is that after it clears and stuff the process changes to Android.process.acore and te message i get in my logcat is: 04-13 10:28:13.394 12259-12265/android.process.acore D/dalvikvm﹕ Debugger has detached; object registry had 1 entries

编辑:我没有读到断点,所以禁用焦点设置建造,运行,部署,调试器在断点上应用,但没有任何效果。

I did read about breakpoints, so disabled focus application on breakpoints in Settings-build,execution,deployment-debugger but didn't had any effect

推荐答案

我有同样的问题,但看起来更像是一个比一个bug的特征:

I had the same issue, but looks more like a feature than a bug:

在AndroidStudio,的默认设置的logcat窗口似乎是只显示所选应用程序 ...(在logcat的窗口的右上角),它正在考虑的选择的日志流程(您目前推出默认情况下)。因此,当在测试您的应用程序崩溃,这个过程走了,所以过滤器清除日志。

In AndroidStudio, the default setting for the Logcat window seems to be "Show only selected Application" (top right corner of the Logcat window)... which is looking at the log of the selected process (your current launch by default). So when your app crashes during testing, that process is gone, so the filter clears the log.

相反,选择编辑过滤器配置...,并设置过滤器为您的应用程序,例如:

FILTERNAME:MyApp的 PACKAGENAME:com.example.myapp(LT;<替换您的应用程序的包名)

...,然后选择过滤器以供将来运行。这应该保持日志有你,即使在应用程序崩溃。

...and then select that filter for future runs. This should keep the log there for you, even after the app crashes.