microsoft / microsoft/vscode-java-debug
Debugger is using old cached test file
Đang mở
@testforstephen đang làm issue này rồi.
Từ ngày 20/5/2018.
ai-triaged
bug
external
sourcemap
voting
- Ngôn ngữ chính
- TypeScript
- Star
- 591
- Fork
- 429
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 19
Mô tả
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
- Check out a simple single module maven project.
- Set a breakpoint in VSCode in one of the tests.
- Use
mvn -Dmaven.surefire.debug testto run the test. Stops atListening for transport dt_socket at address: 5005 - Attach the debugger to port 5005. Everything works fine the first time.
- Continue working on the project (edit, compile, test code). Possibly days later run the debugger again using the same workflow.
- It uses an old cached file. The actual source file: (Note the file path and breakpoint at line 280)

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):

This used to work fine a couple of months ago.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.