Search code examples
javascriptgoogle-chromeinspector

(How) Can I use Chrome's inspector to set breakpoints on files that use cachebusters?


I'm trying to set breakpoints on a JS file but Chrome doesn't seem to recognize that the page is the same due to a cachebuster on the URL (e.g., &random=123).

How can I convince Chrome that the page is the same regardless of its URL params?


Solution

  • put the following in your JS where you want a break

    debugger;