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
#1,244 5 commenti 0 reazioni 1 assegnatario Vedi su GitHub

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

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.