Forum Discussion

RobertWarning's avatar
RobertWarning
Copper Contributor
Sep 07, 2025

Debugging Java script in old asp core app

Hy, I need to modify an asp.net.core app witch I made years ago.  in version 2.2.  I do succeed to alter C# code in visual studio (2022), but I need to alter also some Java script. The problem is that if I try to do so and I want to debug it it seems that the script in my browser (MS Edge) is not changing.

I have enabled Java script debugging in VS. I emptied the browsers cache but nothing seems to help. When I run the application in debugging mode and hit F12 I still see the old script.

Please help!

1 Reply

  • Hi,

    My first guess is that the browser isn't actually loading the JavaScript file you're editing.

    I'd open F12 > Network or Sources and check the exact path of the .js file being served. It's surprisingly common in older ASP.NET Core 2.2 projects to edit one file while the application is serving a bundled, minified, or copied version from somewhere else (often under wwwroot).

    I'd also try a hard refresh (Ctrl + F5) with Disable cache enabled in DevTools. If the browser still shows the old script, I'd compare the file path in DevTools with the one you're editing in Visual Studio.

    In my experience, that's usually where the problem turns out to be.