Android Studio在调试器中将byte []视为字符串 [英] Android Studio see byte[] as string in debugger
本文介绍了Android Studio在调试器中将byte []视为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试调试一些数据,并且我有一个byte [],我知道其中有文本.但是我无法弄清楚如何将其视为文本,甚至无法获得可以转换为文本的十六进制表示形式.我尝试创建一个使用'new String(this)'的自定义类型转换器,但随后它仅显示'java.lang.String的实例'
I am trying to debug some data, and I have a byte[] that I know has text in it. But I can't figure out how to view it as text, or even get a hex representation that I could convert to text. I have tried creating a custom type converter that uses 'new String(this)', but then it just shows 'instance of java.lang.String'
注意:我使用的是基于IntelliJ构建的Android Studio
Note: I am using Android Studio, which is build on IntelliJ
推荐答案
- 自定义字符串数据视图
- 以字符串形式查看
这篇关于Android Studio在调试器中将byte []视为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文