viewing a stringbuffer or byte array or char array as a string in the debugger...
I have code that is sending a stringbuffer to an output stream and I'd like to be able to read it in the debugger rather than entering logging code. Is there a way to do this. I got it working in one case where the string appeared on the title line of the variable but it won't work for char array's it seems. And I know that byte arrys are problematic but I'd like to be able to view it if it is viewable.
Any help would be appreciated.
Joe
Post is closed for comments.
You can use Alt+F8 or watches to evaluate expression like new
StringBuffer(chars).toString() for example.
--
Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
"joe martinez" <no_mail@jetbrains.com> wrote in message
news:7932327.1065568423969.JavaMail.itn@is.intellij.net...
like to be able to read it in the debugger rather than entering logging
code. Is there a way to do this. I got it working in one case where the
string appeared on the title line of the variable but it won't work for char
array's it seems. And I know that byte arrys are problematic but I'd like
to be able to view it if it is viewable.
>
>
Our current debugger engine (after build 945) allows to specify arbitrary expression for value labels (not only View 'toString').
As soon as I change corresponding user interface this feature will be available in EAP.
You can try DeltaHex editor plugin, which can show byte[] and char[] values in debugger in the form of hex code + text preview.
Although this is probably a little bit too late for original question, maybe it could be useful to someone else...