Forever NewUser
Forever NewUser

Reputation: 81

VS Code Java Debugger

I installed VS Code Java Debugger and loaded my Java project.

Add Configuration:

I tried to add configuration by clicking the button as shown in above image.

Activating Extensions:

When I click Add Configuration, I get Activating Extensions like above and that's it.

Sometimes I get "The Language Support for Java crashed 5 times in the last 3 mins."

How do I setup the Java Debugger in VSCode?

Note : I Uninstalled VSCode, deleted the extensions from %Users%/.vscode/extensions and reinstalled VSCode and extensions. The issue still exists.

Upvotes: 3

Views: 1188

Answers (2)

Dupinder Singh
Dupinder Singh

Reputation: 7769

I was facing the same kind of error but one day found a solution

https://stackoverflow.com/a/61806765/5108695

Basic idea is to:
Install an extension called Lombok Annotations

https://marketplace.visualstudio.com/items?itemName=GabrielBB.vscode-lombok

After installation of this extension, my Java code is able to run and debug in VSCode.

PS: Make sure you had insalled Java Extension pack https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack

Upvotes: 0

Pingolin
Pingolin

Reputation: 3417

For me, the following actions fixed this issue:

  1. Un-install all Java related extensions.
  2. Re-install the Java Extension Pack only.

https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack

Upvotes: 1

Related Questions