microsoft / microsoft/vscode-java-debug

Step Over taking forever on Spring Boot Application

未关闭
#1,103 3 条评论 2 个 reaction 已指派 1 人 在 GitHub 查看

@testforstephen 已经在做这个了。

开始于 2021年12月20日。

ai-triaged performance question step
主要语言
TypeScript
星标
591
派生
429
平均合并
1 天 9 小时
30 天内合并 PR
19

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。