Unable to debug Java Card Applet Code using Java Card Simulator.
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 38/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- java, vscode
研究方向
首先使用 Java Card Simulator、Debug Proxy、APDU Tool 和提供的 Sample 專案重現中斷點失效問題;將 VS Code F5 工作階段與在連接埠 8989 上正常運作的 Eclipse 遠端偵錯工作階段進行比較。檢查現有的 launch.json 以及位於 src/com/sample/MyApplet.java:57 的中斷點。完成的標準是 APDU 命令在 VS Code 中能夠穩定地在該中斷點處停止。
由索引模型根據 Issue 內容生成。
描述
I am trying to debug a Java Card Project in VS Code, but the breakpoints are not hit.
Environment
- Operating System: Windows 10.
- JDK version: 17.0.5 LTS
- Visual Studio Code version: 1.74.2
- Java extension version:
- Java Debugger extension version: 0.47.2022112823
Steps To Reproduce

- Download and Install Java Card Simulator from Oracle. [Java Card Classic Development Kit 3.0.5u4]
• https://www.oracle.com/java/technologies/java-archive-downloads-javame-downloads.html#javacardkitv305 - Download and Extract Sample Java Card Project. [Sample.zip attached.]
- Terminal 1: Start the Simulator.
•cd "{Your_Install_Location}\Java Card Development Kit 3.0.5u4\bin}"
•cref_tdual.exe -p 9025 -debugPort 7019 - Terminal 2: Launch APDU Tool.
•cd "{Your_Install_Location}\Java Card Development Kit 3.0.5u4\bin}"
•apdutool.bat -p 9025 - Load the cap file in Simulator.
• Copy paste the contents of {Your_Extract_Location}/apdu_scripts/cap-com.sample.script in Terminal-2 and press Enter - Installing the application in Simulator.
• Copy paste the contents of {Your_Extract_Location}/apdu_scripts/create-com.sample.MyApplet.script in Terminal-2 and press Enter. - Terminal 3: Launch Debug Proxy.
•cd "{Your_Install_Location}\Java Card Development Kit 3.0.5u4\lib"
•java -jar jc-debug-proxy.jar -port 8989 -vmPort 7019 -capPath {Your_Extract_Location}\Sample\deliverables\com\sample\javacard\sample.cap
---- Debugging In VS Code [Doesn't work]-----
- Open the Sample project in VS Code.
- Start the debug session in VS Code.(Press F5). [A launch.json with correct configurations is already present.]
- Open the file src/com/sample/MyApplet.java and set a breakpoint at line 57.
- In Terminal-2
•0x00 0xA4 0x04 0x00 0x06 0x89 0x89 0x89 0x89 0x89 0x81 0x7F;
• Press Enter.
• The breakpoint at Line-57 should be hit. [This doesn't work.]
---- Debugging with Eclipse for Java [Working] ----------
- Open the Sample project in Eclipse.
- Select File -> Open Projects From File System -> Select the Sample Directory.
- Setup Debug Configuration.
• Select Run -> Debug Configurations...
• On Left Panel Select Remote Java Application.
• In Project Field, Click on Browse and Select Sample.
• Change the port to 8989
• Click on Apply then Debug. - Open the file src/com/sample/MyApplet.java and set a breakpoint at line 57.
- In Terminal-2
•0x00 0xA4 0x04 0x00 0x06 0x89 0x89 0x89 0x89 0x89 0x81 0x7F;
• Press Enter.
• The breakpoint at Line-57 should be hit. [Working]
Additional Informations
- 主要語言
- TypeScript
- 星號
- 591
- 分支
- 431
- 平均合併
- 21 小時 35 分鐘
- 30 天內合併 PR
- 16
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/vscode-java-debug 的其他 Issue
-
java未關閉ai-triaged needs more info
難度 5/5 一週以上 新手友好度 1/100
microsoft/vscode-java-debug#1707 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
Stopping a Java Application with the debugger Stop button dos not work可能已有人在做 @chagong 於 7 天前認領。 未關閉ai-triaged bug
microsoft/vscode-java-debug#1705 · 1 則留言 · 1 個 reaction · 已指派 1 人 ·
維護者通常 1 天內回覆
-
ai-triaged enhancement
難度 3/5 1-2 天 新手友好度 55/100
microsoft/vscode-java-debug#1689 · 3 則留言 ·
維護者通常 1 天內回覆
-
Extension appends malformed string to PATH可能重新可做 @wenytang-ms 於 56 天前認領,目前沒有進行中的 PR。 未關閉ai-triaged bug
microsoft/vscode-java-debug#1666 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
ai-triaged bug
難度 3/5 1-2 天 新手友好度 48/100
microsoft/vscode-java-debug#1658 · 1 則留言 ·
維護者通常 1 天內回覆
查看 microsoft/vscode-java-debug 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 72/100
solana-foundation/solana-com#2245 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
`document.cookie` with `max-age=0` does not delete the cookie可能已有人在做 @BartInTheField 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 74/100
capricorn86/happy-dom#2460 ·
維護者通常 2 天內回覆