convenient view of char[] as String?

Is there a convenient way in the 7.0M1 debugger to view a char[8192] as a String?

I was finally able to, e.g., for foo, via Expression Evaluation of new String(foo).

But I couldn't find any way to get the debugger to display it automatically. Right-click -> Inspect gives me a big, empty window. I tried to define a Type Renderer with Customize Data Views, but had no luck there either ("char[]" for the fully-qualified name of the object type, and an expanding expression of "new String()", but what's the parameter name of the type being rendered? "new String(node)"?)

0

Use "new String(this)".

0

请先登录再写评论。