Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Function breakpoint on methods of static inner classes does not work

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, typescript
Lĩnh vực
devtools

Hướng nghiên cứu

Tái hiện hành vi của function-breakpoint bằng ví dụ StarstarApplication được cung cấp, so sánh top-level main với static inner RootController#root trên JDK 17. Theo dõi cách trình gỡ lỗi Java phân giải từng method breakpoint; hoàn tất khi method breakpoint của lớp bên trong được liên kết và dừng khi root endpoint chạy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

ai-triaged bug

I am able to set the function breakpoint on methods of top level class e.g.

com.example.starstar.StarstarApplication#main

but the same does not work for methods of inner static class methods e.g.

com.example.starstar.StarstarApplication.RootController#root

image

@SpringBootApplication
public class StarstarApplication {
	public static void main(String[] args) {
		SpringApplication.run(StarstarApplication.class, args);
	}

	@RestController
	public static class RootController {
		@GetMapping("/")
		public String root() {
			return "Hello World";
                }
       }
}
Environment
  • Operating System: Any
  • JDK version: JDK17
  • Visual Studio Code version: 1.79.2
  • Java extension version: v1.20.0
  • Java Debugger extension version: v0.52.0
Steps To Reproduce
  1. Set function breakpoint on method of top level class
  2. Set function breakpoint on method of static inner class

Run the program.

The function breakpoint on method of top level class works.
The function breakpoint on method of static inner class does not work.

Current Result

The function breakpoint on method of static inner class does not work.

Expected Result

The function breakpoint on method of static inner class should work.

Additional Information
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

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.

Issue khác của microsoft/vscode-java-debug

Tất cả issue của microsoft/vscode-java-debug

Issue tương tự

Thêm issue về TypeScript

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.