microsoft / microsoft/vscode-java-debug
Getting 'ERROR: transport error 202: recv error: Connection reset by peer' while debugging
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 591
- Forks
- 429
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 19
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza reproduciendo la desconexión con las versiones indicadas de VS Code, la extensión, JDK y Windows, la configuración de attach y el proyecto Maven grande y multimódulo. Compara el comportamiento con el issue relacionado 164; se considera hecho cuando el depurador permanece conectado mientras la aplicación continúa ejecutándose.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, typescript, vscode
- Área
- devtools
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100