microsoft / microsoft/vscode-java-debug
Debugger for Java, "javaExec": "java.bat", spawn EINVAL
未关闭
还没有人认领这个 Issue。
ai-triaged
bug
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
Java debugger cannot launch with "javaExec": "java.bat" option.
Environment
- Operating System: Windows 10
- JDK version: openjdk 11.0.19 2023-04-18
- Visual Studio Code version: 1.92.0
- Java extension version: -
- Java Debugger extension version: v0.58.2024072207 (pre-release)
Steps To Reproduce
- make custom
java.batforjavaExec
"%JAVA_HOME%\bin\java.exe" %*
- make
.vscode/launch.jsonwith"javaExec"option
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Test",
"request": "launch",
"mainClass": "Test",
"javaExec": "${workspaceFolder}/java.bat"
}
]
}
- Launch Debugger
-
sample project - java-report.zip
-
error logs, but it seems it does not helpful.
notificationsAlerts.ts:42 spawn EINVAL
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1230
C @ event.ts:1241
fire @ event.ts:1265
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1230
fire @ event.ts:1261
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
Current Result
Expected Result
No error.
Additional Informations
it worked yesterday but it failed today.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从提供的 .vscode/launch.json 和 Windows 10 上的自定义 java.bat 开始,然后使用 javaExec 设置重现启动过程,并检查报告的 spawn EINVAL 故障。使用批处理文件可执行文件成功启动 Java 调试器且不出现 spawn 错误,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- devtools, operating-systems
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100