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.
CodePudding user response:
It could be a problem with caching. Try using a silent browser and disabling caching
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.