microsoft / microsoft/vscode-java-debug
cant remote debug on tomcat via attach
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
i'm trying to remote debug my application, which is running on a tomcat.
Environment
- Operating System: mac OS 10.14.4
- JDK version: 1.8.0_131
- Visual Studio Code version: 1.34.0
- Java extension version: 0.7.1
- Java Debugger extension version: 0.18.0
Steps To Reproduce
my configuration:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Attach) - Remote",
"request": "attach",
"hostName": "localhost",
"port": 8090
},
]
}
[attach a sample project reproducing the error]
attach logs
Current Result
i'm getting an error message in vscode: Timeout occured while waiting for packet 106
Expected Result
debugger attaches to the remote tomcat just fine
Additional Informations
the same configuration works with intelliJ idea, so it should work in vscode.
idea connects fine with host: localhost, port: 8090
idea shows these params: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8090
do i have to add them somewhere for vscode?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先查看提供的启动配置和故障排查日志记录说明,然后将 VS Code 的附加路径与 IntelliJ 使用的 JDWP 参数进行比较。完成标准是确定 localhost:8090 上的 Tomcat 目标超时的原因,并确认调试器成功附加。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100