简体   繁体   English

如何从Genymotion设备获取LogCat

[英]How to get LogCat from Genymotion device

I'm using Android Studio and I installed the plugin Genymotion as well as program. 我正在使用Android Studio,并且安装了插件Genymotion和程序。

Right now I want to debug some application with problem, but if I use Genymotion device there is no LogCat in Android Studio. 现在,我想调试一些有问题的应用程序,但是如果我使用Genymotion设备,则Android Studio中没有LogCat。 Is there a way how to add him for this device too? 有没有办法也将他添加到此设备?

If not I searched some information from Genymotion FAQ, there is path when you can find LogCat in some directory but when I opened it there was no useful info for me only weird lines I don't understand. 如果没有,我从Genymotion FAQ中搜索了一些信息,则可以在某些目录中找到LogCat,但是当我打开它时,没有对我有用的信息,只有我不懂的怪异行。 I only need a report of why my app crashed. 我只需要报告为什么我的应用程序崩溃了。

Here is an example: 这是一个例子:

08-10 18:05:30.445 D/Genyd   (   58): Connected to genybaseband
08-10 18:05:30.445 I/Genyd   (   58): Genyd running
08-10 18:05:30.473 D/DHCP    (   75): ===== DHCP message:
08-10 18:05:30.473 D/DHCP    (   75): op = BOOTREQUEST (1), htype = 1, hlen = 6, hops = 0
08-10 18:05:30.473 D/DHCP    (   75): xid = 0x8e0d0000 secs = 0, flags = 0x8000 optlen = 14
08-10 18:05:30.473 D/DHCP    (   75): ciaddr = 0.0.0.0
08-10 18:05:30.473 D/DHCP    (   75): yiaddr = 0.0.0.0
08-10 18:05:30.473 D/DHCP    (   75): siaddr = 0.0.0.0
08-10 18:05:30.473 D/DHCP    (   75): giaddr = 0.0.0.0

As a couple of guys correctly pointed, the "adb" works fine. 正如几个家伙正确指出的那样,“ adb”效果很好。 I use eclipse on Windows, no plugin of Genymotion, but once Genymotion started I run in the shell this command: c:\\Android\\android-sdk\\platform-tools\\adb.exe logcat -v threadtime > c:\\tmp\\logcat_20160609_geny.txt 我在Windows上使用eclipse,没有Genymotion插件,但是一旦Genymotion启动,我便在外壳中运行以下命令:c:\\ Android \\ android-sdk \\ platform-tools \\ adb.exe logcat -v threadtime> c:\\ tmp \\ logcat_20160609_geny 。文本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM