DevTools icon indicating copy to clipboard operation
DevTools copied to clipboard

Sources panel unexpectedly kept the obsolete resources

Open experdot opened this issue 2 years ago • 5 comments

Steps

  1. Debug index.ts in "http://127.0.0.1:22300"
  2. Hit a breakpoint, and close the tab directly
  3. Shutdown "127.0.0.1:22300", then publish a new site "127.0.0.1:22400"
  4. Find out both the 22300&22400 resources exist in 22400's source panel.[NG]
  5. Can't auto link to index.ts [NG] image

image

Version

Version 101.0.1210.39 (Official build) (64-bit)

AB#39527330

experdot avatar May 11 '22 08:05 experdot

Thanks for reaching out! I'm trying to reproduce this issue but so far have not been able to. Can you double check the steps please? Are you sure you're supposed to close the tab, and then re-open another one on the new port (after having re-started the server)? When I do that, the list of resources in the Sources panel looks correct to me.

captainbrosset avatar May 11 '22 09:05 captainbrosset

Enviroment

  • VS Code
  • VS Code Live Server

Record

snapshot

Full source

source.zip

experdot avatar May 12 '22 02:05 experdot

Thanks a lot for the added details. @codepo8 you probably have more knowledge about the VS Code Live Server and how it could influence this. Would you mind looking into this please? And pulling in anyone you think might be able to pinpoint the issue.

captainbrosset avatar May 12 '22 07:05 captainbrosset

@captainbrosset Is there any way to clear the cache in DevTools>Source? My understanding is that it's cached on disk. I used to solve this by reinstalling the browser, but it's too frequent to do that every time. image

experdot avatar Mar 18 '24 01:03 experdot

Pinging @robpaveza who would be a better person than me to answer the above.

captainbrosset avatar Mar 18 '24 08:03 captainbrosset