简体   繁体   English

(如何)我可以使用Chrome的检查器在使用cachebusters的文件上设置断点吗?

[英](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 (eg, &random=123). 我正在尝试在JS文件上设置断点,但Chrome似乎没有认识到页面是相同的,因为URL上有一个缓存器(例如,&random = 123)。

How can I convince Chrome that the page is the same regardless of its URL params? 如何让Chrome说服该网页是否相同,无论其URL参数如何?

将以下内容放在您希望休息的JS中

debugger;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM