android studio 在应用程序运行时打开调试模式 [英] android studio open debug mode when app is running

查看:45
本文介绍了android studio 在应用程序运行时打开调试模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应用在android studio上运行时如何打开调试模式,

How can open debug mode when application is running on android studio.,

我的应用程序出现在 -Android Device Monitor- Devices 标签上.当我在此屏幕上单击应用程序行时,调试图标未处于活动状态

My application is appearing on -Android Device Monitor- Devices tab . When i clicked application line on this screen ,debug icon is not active

如何在运行我的应用程序后进入调试模式?

How can i pass to debug mode after running my application?

推荐答案

在 Android Studio(我目前使用的是 I/O Preview 0.2.10)中,只需点击工具栏中看起来像有 bug 的手机的图标在它上面 - 悬停文本说:Attach debugger to Android process. 这是第三个图标:

In Android Studio (I'm currently using I/O Preview 0.2.10) simply click on the icon in the toolbar that looks like a phone with a bug over it - the hover text says: Attach debugger to Android process. It's the third icon along:

然后会出现一个列表,显示您可以调试的进程.选择一个并选择 OK - 您的应用程序正在调试中!

A list will then appear showing your processes that you can debug. Choose one and select OK - your application is now being debugged!

注意:确保您的应用可调试,如此处所示.

Note: Make sure your app is debuggable, as shown here.

这篇关于android studio 在应用程序运行时打开调试模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆