how to watch 10000 elements of a array as hex?

hello all, I had to watch a array as hex, so I had to shift-clift the 100 elements and change the view as HEX, and next 100 elements. Is there a options to change the default view format to HEX? I right-click the array name in watch windows, but can not set it

2 comments

Evans Zhang wrote:

hello all, I had to watch a array as hex, so I had to shift-clift the 100 elements and change the view as HEX, and next 100 elements. Is there a options to change the default view format to HEX? I right-click the array name in watch windows, but can not set it

I don't think that this is possible with Idea.
However there's a workaround I use sometimes to get formatted debug output:
Create a utility class "com.foo.DebugHelper" and implements a static method
"showArrayAsHex(int offset, int length)", then you can have a watch expression
"com.fooDebugHelper.showArraysAsHex(yourArray, 200, 100)" and watch its output
on the console.

Hm, as I write this I remember that there are "Type Renderers" for debug output:
Right-click in the debug panel and choose "Customize Data Views". On the second
tab you can configure expressions that Idea uses to display certain objects.
I don't think that this allows "paging" for arrays, though.

0

so trouble?
no pleasure
it is a very simple, basic feature
why not, great IDEA?

0

Please sign in to leave a comment.