microsoft / microsoft/vscode-java-debug

cant remote debug on tomcat via attach

オープン
#585 コメント 14 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

ai-triaged attach question
主要言語
TypeScript
スター
591
フォーク
429
平均マージ
1日 9時間
マージ済み PR(30日)
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?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供された起動構成とトラブルシューティングのログ記録手順から始め、その後、VS Code のアタッチ経路と IntelliJ が使用する JDWP パラメーターを比較します。localhost:8090 の Tomcat ターゲットがタイムアウトする理由を特定し、デバッガーが正常にアタッチできることを確認できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, vscode
領域
devtools
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。