Skip to content

Debugging jumping directly into error in Class.class #1520

@tnguyen2601

Description

@tnguyen2601

Upon launching debug either per launch.json or Spring Boot Dashboard, VSCode jumps to Class.class here.
Image

I don't event get to the Spring Boot Output in the Terminal which would normally happen. The terminal only shows the command that VSCode executes to launch Java. This "C:program Java jdk-21 jav.exe -gentlib.... .argfile ...." then it stops there and jumps to the error.
Image

Once continued I get java.lang.IllegalArgumentException in getKeyStore of Class.class
Image

And it would take me for ever to screenshot and mention every following Exception which happens afterwards.
Everything worked perfectly fine before that. It happened from one debug session to another. I tested with a freshly generated maven-quickstart project and debug there worked perfectly fine.

What worked:

  • Running and debugging in IntelliJ
  • My Coworker tried it in their VSCode and it worked for them

What I tried:

  • Restart Laptop
  • Reinstall VSCode
  • Cleaned Cache
  • Tried older Version of VSCode Debugger for Java

Infos:

  • My launch.json
    • { "name": "Launch App", "type": "java", "request": "launch", "envFile": "${workspaceFolder}/.env", "mainClass": "com.agb.app.MyApp", "projectName": "MyApp" },
  • Debugger Version: v0.58.0
  • VSCode Version: 1.95.0 (user setup)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions