eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
Strange output at the end of the js file debug
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 201
- Fork
- 76
- Merge medio
- 4g 7h
- PR unite (30g)
- 21
Descrizione
Sometimes, I get a strange output in the console at the end of debugging. The output is:
Debug server listening at 127.0.0.1:44301
{
seq: 286,
type: 'response',
request_seq: 13,
command: 'disconnect',
success: true,
body: {}
}
{
seq: 287,
type: 'response',
request_seq: 14,
command: 'disconnect',
success: true,
body: {}
}
{
seq: 11,
type: 'response',
request_seq: 8,
command: 'disconnect',
success: true,
body: {}
}
node:events:495
throw er; // Unhandled 'error' event
^
Error: This socket has been ended by the other party
at Socket.writeAfterFIN [as write] (node:net:569:14)
at iv.send (/home/user/Programas/eclipse/plugins/org.eclipse.wildwebdeveloper_1.1.2.202310160731/js-debug/src/dapDebugServer.js:148:162)
at df._send (/home/user/Programas/eclipse/plugins/org.eclipse.wildwebdeveloper_1.1.2.202310160731/js-debug/src/dapDebugServer.js:91:4596)
at df._onMessage (/home/user/Programas/eclipse/plugins/org.eclipse.wildwebdeveloper_1.1.2.202310160731/js-debug/src/dapDebugServer.js:91:5086)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
code: 'EPIPE'
}
Node.js v18.18.0
It is important to note that this error is not shown every time. Sometimes it happens, sometimes it doesn't.
Steps to reproduce:
- Create a js file with the following code:
console.log("test")
- Put a breakpoint in the console.log line
- Right click on the file body.
- Select "Debug As -> Node program"
- Press f8 to continue the debug
- Repeat the debug several times
Sometimes the error is not shown. Sometimes only the json is shown. Sometimes only console.log output is shown.
I hope that every time the debug occurs, only the console.log output is shown.
It appears that some process is trying to write in a socket but it has already been terminated.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo i passaggi ripetuti di debug del programma Node e ispeziona dapDebugServer.js, in particolare le posizioni mostrate nello stack trace intorno alle righe 91 e 148. Confronta le esecuzioni che mostrano JSON, output della console o l’errore EPIPE; il lavoro è completato quando il debug ripetuto non produce più l’errore socket segnalato né risposte di debug impreviste.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100