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"
Aperta
@testforstephen ci sta già lavorando.
Dal 23/1/2024.
ai-triaged
bug
evaluation
- Lingua principale
- TypeScript
- Stelle
- 591
- Fork
- 429
- Merge medio
- 1g 9h
- PR unite (30g)
- 19
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.