IntelliJ debugger variables shows in bytes instead of real values
Answered
hi,
I am using sevral software: Pycharm, Webstorm and IntelliJ
when using IntelliJ in Kotling, it shows me the values in Bytes instead of strings
why ?? - can some help me return it to strings??

Please sign in to leave a comment.
Hi. Try right-clicking on array variable and clicking "View as->Create...". Then, in the "Java Data Type Renderers" window, create a new entry, set "When rendering a node, use following expression" with
Arrays.toString(this)unfortunately, i cannot get it to work.
also, why it isnt a default? as in Pycharm? why will the user will ever care it to be in Bytes.. its Java.. not Assembler/C
this is the error i get:

Does Arrays.toString((byte[]) this) works?
no, it doesnt do anything with the followin red error in debug console (where all variables are):
"Unable to evaluate the expression Cannot cast 'java.lang.String' to 'byte[]'"
It works for me, at least for a byte array, Do you have an array of String? Could you please provide some kind of a code example, to test?
yes, lets say this code:
val abc = arrayOf("a","b","c")
as seen from screenshots below the followng config:
Switching renderer to a java.lang.String[] works for me in such case.
I am still cannot see the expected result, despite all tries. Is it possible to do somehow short meeting in zoom please ?
Try switching to default renderer, the following settings work for me: