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??

 

0
10 comments

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)

1

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

0

 

 

this is the error i get:

0

Does Arrays.toString((byte[]) this) works?

0

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[]'"

 

 

0

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?

0

yes, lets say this code:

 

val abc = arrayOf("a","b","c")

 

 

as seen from screenshots below the followng config:

 

0

Switching renderer to a java.lang.String[] works for me in such case.

0

I am still cannot see the expected result, despite all tries. Is it possible to do somehow short meeting in zoom please ?

 

0

Try switching to default renderer, the following settings work for me:

0

Please sign in to leave a comment.