Visual Studio 2022 EVAL Window showing outdated/wrong code

Kirby L. Wallace 0 Reputation points
2023-08-29T14:11:20.24+00:00

When debugging a web application, Visual Studio opens the running scripts in "Eval" windows that begin with names like VMnnnnnn. However, after several code edits, and page reloads, even with Chrome DevTools open and "Disable Cache" checked, and even after reloading the page with CTRL-F5, these eval windows are showing code that is several "save and reloads" ago. It's like VS or perhaps IIS Express have a cache somewhere that ignores the browser's "disable cache" setting.

Any idea how to fix this, or better yet make VS2022 do it's debugging in the source file, not these script eval windows?

User's image

User's image

User's image

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.