简体   繁体   English

如何在android中调试kivy应用程序?

[英]How to debug a kivy app in android?

I'm developing a kivy app in android.我正在 android 中开发一个 kivy 应用程序。 After compiling the app and running it, if there is a crash or sort of errors, how can I find the specific error?编译并运行应用程序后,如果出现崩溃或某种错误,我如何找到特定错误?

I heard there is a log program.我听说有一个日志程序。

The tool you want is called logcat.您想要的工具称为 logcat。

The doc is http://developer.android.com/tools/help/logcat.html该文档是http://developer.android.com/tools/help/logcat.html

It will display lots of log info from running Android programs, so it helps to apply filters such as the program name and log level.它将显示运行 Android 程序的大量日志信息,因此它有助于应用程序名称和日志级别等过滤器。

From the doco:从文件:

You can run logcat as an adb command or directly in a shell prompt of your emulator or connected device.您可以将 logcat 作为 adb 命令运行,也可以直接在模拟器或连接设备的 shell 提示符下运行。 To view log output using adb, navigate to your SDK platform-tools/ directory and execute:要使用 adb 查看日志输出,请导航到您的 SDK platform-tools/ 目录并执行:

adb logcat

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

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