简体   繁体   English

Chrome Devtools显示重新加载后框架的过时js源

[英]Chrome Devtools shows outdated js source for frame after reload

have script in a frame: 在框架中包含脚本:

在此处输入图片说明

now I move "debugger" from line 2207 to 2209, save and reload the frame. 现在,将“调试器”从第2207行移至2209,保存并重新加载框架。

在此处输入图片说明

Chrome debugger stopped on 2209, but shown source code is outdated. Chrome调试器于2209年停止,但显示的源代码已过时。

' Disable cache ' on DevTools is checked . DevTools上的“ 禁用缓存 ”已选中 Helps only reloading whole page. 仅帮助重新加载整个页面。

How do I get chrome Dev tools to show the js source correctly?? 如何获取Chrome开发工具以正确显示js源?

On top right of DevTools, click the "3 dots" menu and select "Settings". 在DevTools的右上角,单击“ 3点”菜单,然后选择“设置”。 There you may wanna check "Disable cache(while DevTools is open)". 在那里,您可能想要选中“禁用缓存(在DevTools打开时)”。

Also, on MacOS you can use at any moment (even with DevTools closed)the shortcut "Command + Shift + R" to force a full refresh of the page. 另外,在MacOS上,您随时可以(即使关闭了DevTools)使用快捷键“ Command + Shift + R”来强制刷新页面。

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

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