When trying to watch a an array of byte, the debugger displays an error message instead of the values it has stored, despite the local variables list displaying the values correctly.
Environment
- Operating System: Windows 10
- JDK version: 17
- Visual Studio Code version: 1.76.2
- Java extension version: v0.25.10
- Java Debugger extension version: v0.49.1
Steps To Reproduce
- Have a byte[] variable at runtime and put a breakpoint somewhere
- try to add the variable to the watched variables
[attach a sample project reproducing the error]
We can see here that the Local variables list is able to read the values, but not the watch

Current Result
'Cannot evaluate because of compilation error(s): Evaluations must contain either an expression or a block of well-formed statements.'
Expected Result
the list of values stored inside of the variable