microsoft / microsoft/vscode-java-debug
Step Over taking forever on Spring Boot Application
@testforstephen is already working on this.
Since Dec 20, 2021.
- Dominant language
- TypeScript
- Stars
- 591
- Forks
- 429
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 19
Description
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:
- If after hitting the breakpoint I resume (F5) the execution, it finishes processing almost immediately (0.3s)
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.