microsoft / microsoft/vscode-java-debug

Step Over taking forever on Spring Boot Application

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

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

Từ ngày 20/12/2021.

ai-triaged performance question step
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'm trying VSCode with Java for the first time as an option for Eclipse. Configured the environment pretty easily (Java Extension Pack, Spring Boot 4 EP, Lombok) and could run my project.

In order to test debugging I enabled a breakpoint on the first line of my Controller. It basically calls a injected bean service method and LOTS of stuff happen inside it, finally throwing an exception. Here VSCode behaves in 2 very different ways:

  1. If after hitting the breakpoint I resume (F5) the execution, it finishes processing almost immediately (0.3s)
  2. If after hitting the breakpoint I do a step over (F10), it takes forever (like 207s)

During this 3 minutes I pressed pause sometimes, and VSCode stops in all kinds of library code (JPA, Logback, Spring, etc.), so I wonder if this can be related to this closed issue? Our project has very "fat" jar with lots of dependencies, but I don't know how heavy the impact of this limitation of not having "just my code" option should be.

Any ideas of any other causes?

Environment
  • Operating System: Ubuntu
  • JDK version: 1.8
  • Visual Studio Code version: 1.63.2
  • Java extension version: v0.20.0
  • Java Debugger extension version: v0.37.0

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.