DevTools
DevTools copied to clipboard
Sources panel unexpectedly kept the obsolete resources
Steps
- Debug index.ts in "http://127.0.0.1:22300"
- Hit a breakpoint, and close the tab directly
- Shutdown "127.0.0.1:22300", then publish a new site "127.0.0.1:22400"
- Find out both the 22300&22400 resources exist in 22400's source panel.[NG]
- Can't auto link to index.ts [NG]
Version
Version 101.0.1210.39 (Official build) (64-bit)
AB#39527330
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.
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 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.
Pinging @robpaveza who would be a better person than me to answer the above.