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