Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Getting 'ERROR: transport error 202: recv error: Connection reset by peer' while debugging

Open
#1,269 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, typescript, vscode
Domain
devtools

Research direction

Start by reproducing the disconnect with the reported VS Code, extension, JDK, Windows, attach configuration, and large multi-module Maven project. Compare the behavior with related issue 164; done means the debugger remains connected while the application continues running.

Written by the indexing model from the issue text.

Description

ai-triaged bug disconnect

Environment:

  • VS Code Version: 1.73.1
  • Extension Version: Language Support for Java(TM) by Red Hat v1.13.2022111603
  • JDK Type & Version: Oracle jdk1.8.0_351 - 32bit
  • OS Type & Version: Windows 10 Enterprise

Step to Reproduce:

  • Open an existing multi-module maven project in VS Code and wait until it is fully loaded. This project is relatively huge.
  • Setup launch.json with attach and launch for Java Project
  • The launch config is working fine. Still, after a couple of minutes, I get ERROR: transport error 202: recv error: Connection reset by peer in the terminal, and the debugger is disconnected.
  • The same happens with the attach config.
  • I am able to debug successfully as long as the debugger is not disconnected.
  • When debugging in the attach config, the debugger keeps on listening, and I can attach again, but it will disconnect after a couple of minutes.
  • Even after the debugger is disconnected, the application is still active.
  • The command used to start the debugger in attach mode is:
C:\apps\jdk1.8.0_271\bin\java.exe "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:60082" '-Xincgc -Xms64m -Xmx950m' '-Dsun.security.ssl.allowUnsafeRenegotiation="true"' '-Djava.security.policy="policy.all"' '-Dpython.home=".."' '-Dcom.ibm.mq.cfg.useIBMCipherMappings="false"' '-Xbootclasspath/p:class1 class2 ...' '-cp' '.\classpath.jar' 'mainClassName'

Note: The command above to start the debugger is mostly provided as it is the same one used to launch the actual application.

Launch Config for attach:

        {
            "type": "java",
            "name": "Attach to java debug port 60082",
            "projectName": "sarora",
            "request": "attach",
            "hostName": "localhost",
            "port": "60082"
        }

Expected Behavior:

  • The debugger should remain active and should not disconnect

Actual Behavior:

  • The debugger is disconnecting after a couple of minutes.

Related Issues:
I found this report to be similar:
https://github.com/microsoft/vscode-java-debug/issues/164
and I followed the instructions to do the needed troubleshooting but it is not working.

Dominant language
TypeScript
Stars
591
Forks
429
Avg merge
1d 9h
Merged PRs (30d)
19

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode-java-debug

All issues in microsoft/vscode-java-debug

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.