Skip to content

Trying to watch the value of a byte[] variable gives 'Cannot evaluate because of compilation error(s): Evaluations must contain either an expression or a block of well-formed statements' #1323

@nathan-gt

Description

@nathan-gt

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
  1. Have a byte[] variable at runtime and put a breakpoint somewhere
  2. 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
image

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions