Getting 'ERROR: transport error 202: recv error: Connection reset by peer' while debugging
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- java, typescript, vscode
- Domaine
- devtools
Piste de recherche
Commencez par reproduire la déconnexion avec les versions indiquées de VS Code, de l’extension, du JDK et de Windows, la configuration d’attach et le grand projet Maven multi-module. Comparez le comportement avec l’issue connexe 164 ; la tâche est terminée lorsque le débogueur reste connecté tandis que l’application continue de s’exécuter.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.jsonwithattachandlaunchfor Java Project - The
launchconfig is working fine. Still, after a couple of minutes, I getERROR: transport error 202: recv error: Connection reset by peerin the terminal, and the debugger is disconnected. - The same happens with the
attachconfig. - I am able to debug successfully as long as the debugger is not disconnected.
- When debugging in the
attachconfig, 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
attachmode 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.
- Langage dominant
- TypeScript
- Étoiles
- 591
- Forks
- 429
- Merge moyen
- 1 j 3 h
- PR mergées (30 j)
- 19
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoft/vscode-java-debug
-
ai-triaged bug
microsoft/vscode-java-debug#1703 · 1 commentaire · 1 réaction · 1 personne assignée ·
-
ai-triaged enhancement
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
microsoft/vscode-java-debug#1689 · 2 commentaires ·
-
ai-triaged bug
microsoft/vscode-java-debug#1666 · 1 commentaire · 1 personne assignée ·
-
ai-triaged bug
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
microsoft/vscode-java-debug#1658 · 1 commentaire ·
-
ai-triaged enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
microsoft/vscode-java-debug#1628 · 3 commentaires ·
Toutes les issues de microsoft/vscode-java-debug
Issues similaires
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
-
Mend: dependency security vulnerability untriaged
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100