而Android Studio中调试通过默认十六进制查看值 [英] View values as hexidecimal by default while debugging in Android Studio

查看:5561
本文介绍了而Android Studio中调试通过默认十六进制查看值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是类似<一个href=\"http://stackoverflow.com/questions/17447013/android-studio-debugging-display-variables-as-hexadecimal\">"Android工作室&QUOT;调试 - 显示变量为十六进制,但我想知道如何使这个默认设置

My question is similar to "Android Studio" debugging - display variables as hexadecimal, but I want to know how to make this the default setting.

我知道如何更改设置单个值:

I know how to change the setting for individual values:

,而是在长串检查的所有字符的值,这成为乏味。以十六进制显示时的Uni code字符更可读。有什么办法来设置此作为Android的Studio中的默认?我看了看文件>设置>调试器,但我没有看到任何东西。

but for checking the values of all the characters in long strings, this becomes tedious. Unicode characters are much more readable when displayed in hex. Is there any way to set this as the default in Android Studio? I looked in File > Settings > Debugger but I didn't see anything.

推荐答案

我不知道这个选项是在早期版本的Andr​​oid工作室提供,但由于1.2版本,你可以这样做:

I don't know if this option was available in earlier versions of Android Studio, but as of version 1.2 you can do this:

单击鼠标右键获得上下文菜单并选择Custimize数据视图......

Right click to get the context menu and choose "Custimize Data Views...".

,然后选中为基元显示十六进制值。

Then check "Show hex values for primitives".

现在的数值应以十六进制,而无需手动更改每一个自动显示。

Now the values should automatically display in hexadecimal without having to manually change each one.

这篇关于而Android Studio中调试通过默认十六进制查看值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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