microsoft / microsoft/vscode-java-debug

Debugger is using old cached test file

未關閉
#302 27 則留言 9 個 reaction 已指派 1 人 在 GitHub 檢視

@testforstephen 已經在處理了。

開始於 2018年5月20日。

ai-triaged bug external sourcemap voting
主要語言
TypeScript
星號
591
分支
429
平均合併
1 天 9 小時
30 天內合併 PR
19

描述

When I set a breakpoint and use the debugger, it opens an old cached version of the source file

Environment
  • Operating System: Windows 8 and 10 (recently upgraded, got the same issue on both)
  • JDK version: java version "1.8.0_162"
    Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
    Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
  • Visual Studio Code version: 1.23.1
  • Java extension version: Java extension pack 0.3.0
  • Java Debugger extension version: 0.9.0
Steps To Reproduce
  1. Check out a simple single module maven project.
  2. Set a breakpoint in VSCode in one of the tests.
  3. Use mvn -Dmaven.surefire.debug test to run the test. Stops at Listening for transport dt_socket at address: 5005
  4. Attach the debugger to port 5005. Everything works fine the first time.
  5. Continue working on the project (edit, compile, test code). Possibly days later run the debugger again using the same workflow.
  6. It uses an old cached file. The actual source file: (Note the file path and breakpoint at line 280)
    image
    Cick on top call stack item in vscode debug panel shows some older cached version of the file (note file path in AppData/Local/Temp):
    image

This used to work fine a couple of months ago.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。