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"

Đang mở
#1,244 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

@testforstephen đang làm issue này rồi.

Từ ngày 23/1/2024.

ai-triaged bug evaluation
Ngôn ngữ chính
TypeScript
Star
591
Fork
429
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
19

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.