Skip to content

Strange debug string appears in terminal when running Java file in VS Code (Red Hat extension) #4022

@ashishmi8113

Description

@ashishmi8113

Description:
Whenever I run any Java file using VS Code, an unwanted debug string appears before my actual output. The code runs fine, but the terminal shows a strange path like this:

a595\redhat.java\jdt_ws\DSA_Java_Practice_2ab43172\bin' 'A_STRIVER.Graphs.Dijsktra_Algo_PQ' ;b059d10e-7c02-4c14-82c2-5bbb8f0a7881

This string appears every time I run a file, even with a clean Java class containing just a main method. It started showing up after I removed a previously auto-generated launch config by the Red Hat extension.


Image

What I’ve Tried:

  • Deleted .vscode/, .classpath, .settings/, and bin/ folders
  • Cleaned Java Language Server workspace
  • Restarted Java Language Server
  • Disabled debugger plugins temporarily
  • Created a new folder and ran a clean Java file (HelloWorld.java)
  • Still getting the same unwanted debug string

Steps to Reproduce:

  1. Open a Java project folder in VS Code
  2. Create and run a simple Java file:
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}

Run usingRun Java” (not debug)

Observe terminal output: strange debug path string appears before actual program output

VS Code Version:
VSCodeUserSetup-x64-1.99.0

Extensions:
Language Support for Javaby Red Hat

Debugger for Java

Java Test Runner

Java Version:
OpenJDK 21.0.6 Temurin (build 21.0.6+7-LTS)

Please help me resolve this or let me know how to prevent this debug string from showing up in the output. Thanks in advance!

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