Strange output at the end of the js file debug
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, node.js
- 领域
- devtools
调研方向
首先重复复现 Node 程序的调试步骤,并检查 dapDebugServer.js,尤其是 stack trace 中第 91 行和第 148 行附近显示的位置。比较显示 JSON、控制台输出或 EPIPE 错误的运行结果;当重复调试不再产生报告中的 socket 错误或意外的调试响应时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Java
- 星标
- 201
- 派生
- 76
- 平均合并
- 4 天 7 小时
- 30 天内合并 PR
- 21
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eclipse-wildwebdeveloper/wildwebdeveloper 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
eclipse-wildwebdeveloper/wildwebdeveloper#2122 · 2 条评论 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
eclipse-wildwebdeveloper/wildwebdeveloper#2070 · 1 条评论 ·
-
ESLintLanguageServer and JSTSLanguageServer do not support node memory limits (--max-old-space-size) 未关闭
难度 3/5 1-2 天 新手友好度 48/100
eclipse-wildwebdeveloper/wildwebdeveloper#2027 · 2 条评论 ·
-
Renaming a variable leads to entire contents of the file editor being replaced with one word- Error 未关闭
难度 4/5 3-5 天 新手友好度 42/100
eclipse-wildwebdeveloper/wildwebdeveloper#1974 · 5 条评论 ·
查看 eclipse-wildwebdeveloper/wildwebdeveloper 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 76/100
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 1/5 1 小时以内 新手友好度 94/100
objectionary/hone-maven-plugin#1061 ·
-
type:bug
难度 2/5 1-3 小时 新手友好度 72/100