You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue when trying to debug a program that contains 2D array. If I try to put breakpoints checking for array[0].length, it fails with:
Breakpoint condition 'array[0].length > 0' error: Cannot evaluate because of compilation error(s): length cannot be resolved or is not a field.
After somme diggining, it seems that the debugger considers the array[0] object as a double:
Breakpoint condition 'array[0][0] == 0' error: Cannot evaluate because of compilation error(s): The type of the expression must be an array type but it resolved to double.
Do you have any idea on how to solve this?
Thanks
Nicolas
Environment
Operating System: Ubuntu 22.04.3 LTS
JDK version:
openjdk 19.0.2 2023-01-17
OpenJDK Runtime Environment (build 19.0.2+7-Ubuntu-0ubuntu322.04)
OpenJDK 64-Bit Server VM (build 19.0.2+7-Ubuntu-0ubuntu322.04, mixed mode, sharing)
Hi everyone.
I have an issue when trying to debug a program that contains 2D array. If I try to put breakpoints checking for
array[0].length
, it fails with:After somme diggining, it seems that the debugger considers the array[0] object as a double:
Do you have any idea on how to solve this?
Thanks
Nicolas
Environment
Steps To Reproduce
array.length
array[0].length
array[0].length > 0
Current Result
Expected Result
Debugger should stop on breakpoint without error
Files
Code source: TestDebugger.java.txt
Log file:
client.log.2023-08-24.txt
The text was updated successfully, but these errors were encountered: