Chrome Javascript调试器暂停后将不会重新加载页面 [英] Chrome Javascript Debugger, when paused, won't reload page

查看:110
本文介绍了Chrome Javascript调试器暂停后将不会重新加载页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时,当我在Chrome中调试某些JavaScript并暂停了javascript时,如果我尝试重新加载页面,则chrome会继续调试器,然后转到下一个断点。

Sometimes when I'm debugging some javascript in Chrome and I have the javascript paused, if I try to reload the page, chrome instead just "continues" the debugger, stepping to next breakpoint.

似乎没有任何方法可以强制javascript完全停止运行,而让chrome只是重新加载页面。每次按-R或单击重新加载按钮都将继续到下一个断点。

There doesn't seem to be any way to force the javascript to stop running completely, and let chrome just reload the page. Every press of -R or click of the reload button simply continues to the next breakpoint.

我现在的临时解决方案是

My make-shift solution right now is to


  1. 复制网址栏地址

  2. 关闭该标签页

  3. 打开新标签页

  4. ,然后在新标签页中打开网址。

  1. copy the url bar address
  2. close that tab
  3. open a new tab
  4. and then open the url in the new tab.

这是蛮力的,但这是我让Chrome实际加载该页面的新副本的唯一方法,而不仅仅是继续现有的运行。清空缓存没有影响,因为它甚至没有尝试重新加载页面。

This is rather brute-force but its the only way I get Chrome to actually load a fresh copy of that page, instead of just continuing the existing running one. Emptying the cache has no affect because its not even trying to reload the page.

p.s。我还注意到,JavaScript调试器也没有停止按钮。我该如何告诉chrome停止执行javascript,而无需继续。唯一的控件是继续,跨步,跨步,跨步。

p.s. I also notice there is no "stop" button for the javascript debugger as well. How do I just tell chrome to stop executing the javascript, no need to continue. The only controls are "continue", "step-over", "step-in", "step-out". How is there no "stop" or "cancel".

推荐答案

当我想要执行此操作时,我关闭调试器(删除脚本运行完毕),然后重新打开并点击刷新。

When I want to do this I close the debugger (letting the scripts finish running), then re-open it and hit refresh.

这篇关于Chrome Javascript调试器暂停后将不会重新加载页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆