Android Studio debugger copy value of array Android Studio debugger copy value of array arrays arrays

Android Studio debugger copy value of array


Seems, that you cannot just copy arrays. Only single values.

While at the breakpoint, press Alt + F8. That opens Evaluate expression pop-up. Enter there the following code:

Arrays.toString(inputBytes)

That will give the output of string formatted like the following:

[97, 115, 100]

enter image description here

From there you can manipulate with .replace* methods of the String class to remove the commas and the brackets. Or just use your text-editor.

Good luck :)