[ACCEPTED]-How can I display a byte array as a String in java's debug detail formatter?-debugging
I don't know how to get eclipse's detail 4 formatter to automagically display byte 3 arrays as Strings, but you can display a 2 particular byte array by adding new String(byteArray)
as a watch 1 expression.
If your question is how would I get a string 3 representation of a byte array of [0,1,2] to 2 be "[0,1,2]", I would suggest 1 you take a look at Arrays.toString(byte[])
http://java.sun.com/javase/6/docs/api/java/util/Arrays.html#toString(byte[])
You can't add Detail Formatters for simple 1 Datatypes like byte
.
byte[].class
0
The [B type can be retrieved with byte[].class.
0
In Idea debug mode, right click the byte[] data
you 1 want to view and choose the View Text.
More Related questions
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.