microsoft / microsoft/vscode-java-debug
Cannot watch the value of a 2d array "the type of the expression must be an array type but it resolved to int"
Abierto
@testforstephen ya está trabajando en esto.
Desde el 23/1/2024.
ai-triaged
bug
evaluation
- Lenguaje dominante
- TypeScript
- Estrellas
- 591
- Forks
- 429
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 19
Descripción
If you try to watch the value of a 2 dimensional array it will give you "the type of the expression must be an array type but it resolved to int"

Environment
- Operating System: Windows 10
- JDK version: 17.0.2
- Visual Studio Code version: 1.72.2
- Java extension version: v0.25.3
- Java Debugger extension version: v0.45.0
Steps To Reproduce
- Create a static or dynamically allocated 2d array and give it some random values
- Add a breakpoint somewhere
- try to access a specific value of the array in the watch window (ex: array[0][1])
Current Result
Unable to access via watch the value of a 2d array when debugging.
Expected Result
Being able to do that
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.