microsoft / microsoft/vscode-java-debug
Function breakpoint on methods of static inner classes does not work
Chưa có ai nhận issue này.
- 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ả
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
@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
- Set function breakpoint on method of top level class
- 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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
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.
Đánh giá
- Công nghệ
- java, typescript
- Lĩnh vực
- devtools
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100