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"
Offen
@testforstephen arbeitet bereits daran.
Seit 23.1.2024.
ai-triaged
bug
evaluation
- Vorherrschende Sprache
- TypeScript
- Sterne
- 591
- Forks
- 429
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 19
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.