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
#1,244 5 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@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"

image

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
  1. Create a static or dynamically allocated 2d array and give it some random values
  2. Add a breakpoint somewhere
  3. 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

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.