Android Studio 调试器查看位图 [英] Android Studio debugger View Bitmap

查看:54
本文介绍了Android Studio 调试器查看位图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从 Android Studio 0.8.7 版开始,应该有一个位图查看器调试器.请参阅此处的发行说明:http://tools.android.com/recent/androidstudio087released>

我安装了 0.8.9,但看不到此选项.有没有人能够使用这个?有什么我需要启用的吗?

解决方案

首先使用 Shift+F9 在调试模式下运行您的程序,并在您要调查的位图对象之后设置断点创建.调试器在断点处暂停后,将鼠标悬停在 bitmap 变量上并右键单击并选择 View Bitmap,这就是您查看它所需的全部内容.

As of release 0.8.7 of Android Studio there's supposed to be a Bitmap viewer in the debugger. See the release notes here: http://tools.android.com/recent/androidstudio087released

I have 0.8.9 installed and I can't see this option. Has anyone been able to use this? Is there something I need to enable?

解决方案

First run your program in debug mode by using Shift+F9 and set a breakpoint right after the bitmap object you want to investigate is created. Once the debugger pauses at the breakpoint hover over the bitmap variable and right click and select View Bitmap and that's all you need to view it.

这篇关于Android Studio 调试器查看位图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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