microsoft / microsoft/vscode-java-debug

Debugger is using old cached test file

Aperta
#302 27 commenti 9 reazioni 1 assegnatario Vedi su GitHub

@testforstephen ci sta già lavorando.

Dal 20/5/2018.

ai-triaged bug external sourcemap voting
Lingua principale
TypeScript
Stelle
591
Fork
429
Merge medio
1g 9h
PR unite (30g)
19

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.