Home > other >  Chrome dev tools opens an old file when I try to debug?
Chrome dev tools opens an old file when I try to debug?

Time:10-20

I'm trying to debug a javascript file, but whenever I use the Chrome Devtools, a random old JS file opens instead. I haven't been able to move on with my project because of this. Does anybody know why it won't read the current file? You can see down on the gif that I am using index.js but every time I debug it opens a random file and reads that instead.

GIF OF THE ERROR

CodePudding user response:

It could be a problem with caching. Try using a silent browser and disabling caching

enter image description here

CodePudding user response:

The browser caches your old JS file. So what you can do on Chrome is perform a hard refresh with CTRL Shift R while the dev tool is open.

  • Related