The Hungry Androider
The Hungry Androider

Reputation: 2291

Android Studio debugger View Bitmap

enter image description here 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?

Upvotes: 34

Views: 19956

Answers (2)

aga
aga

Reputation: 29416

I'm on Android Studio 1.3 and I didn't find 'View Bitmap' option in the context menu. Turns out that this option now sits right next to every Bitmap variable in the debugger's 'Variables' window:

enter image description here

Upvotes: 79

MrEngineer13
MrEngineer13

Reputation: 38856

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.

View bitmap in debug mode

Upvotes: 59

Related Questions