Getting 'ERROR: transport error 202: recv error: Connection reset by peer' while debugging
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- java, typescript, vscode
- Domínio
- devtools
Direção de pesquisa
Comece reproduzindo a desconexão com as versões informadas do VS Code, da extensão, do JDK e do Windows, a configuração de attach e o grande projeto Maven multimódulo. Compare o comportamento com a issue relacionada 164; considera-se concluído quando o depurador permanece conectado enquanto a aplicação continua em execução.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 591
- Forks
- 429
- Merge médio
- 1d 3h
- PRs com merge (30d)
- 19
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoft/vscode-java-debug
-
ai-triaged bug
microsoft/vscode-java-debug#1703 · 1 comentário · 1 reação · 1 responsável ·
-
ai-triaged enhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
microsoft/vscode-java-debug#1689 · 2 comentários ·
-
ai-triaged bug
microsoft/vscode-java-debug#1666 · 1 comentário · 1 responsável ·
-
ai-triaged bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 48/100
microsoft/vscode-java-debug#1658 · 1 comentário ·
-
ai-triaged enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
microsoft/vscode-java-debug#1628 · 3 comentários ·
Todas as issues de microsoft/vscode-java-debug
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
mksglu/context-mode#1200 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
anthropics/claude-code#96687 ·
-
good first issue
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 95/100
AOSSIE-Org/DebateAI#582 · 2 comentários ·