在远程调试模式下,在一行没有断点处停止 [英] Javascript Stops at a line without a breakpoint in remote debug mode

查看:170
本文介绍了在远程调试模式下,在一行没有断点处停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在远程调试Javascript时使用Intellij IDEA 12.0.4 + Chrome。我的调试会话得到的地方根本没有设置断点。就我而言,这是我的脚本的最后一行。 Chrome调试也一样。由于这两个工具都有相同的问题,我认为脚本文件有问题。



有没有解决这个烦人的问题的方法?



PS:版本控制系统是Git。



附图:

http://s12.postimage.org/n8sz1uyq5/Screen_Shot_2013_03_17_at_9_05_41_AM.png
http://s8.postimage.org/3lv46pnit/Screen_Shot_2013_03_17_at_9_06_51_AM.png

解决方案

原因是浏览器没有正确重新加载代码并缓存所有内容。这里是Mac用户的说明(足够接近其他用户)。

首先在Intellij IDEA中,您应该通过转到文件 - >无效缓存来使缓存无效。

其次,在Chrome中,按Cmd + alt + Backspace(您也可以转至设置 - >历史记录 - >清理浏览数据)。选中清空缓存并单击清除浏览数据。

在Firefox中,通过进入Pretenses和Privacy选项卡,点击清除最近的历史记录。从Clear All History中选择Everything as Time Range并选中Cache,然后单击Clear Now按钮。

<您可以在这里了解所有浏览器的想法...... )



停止调试服务器,并重新启动它。现在应该可以!

I am using Intellij IDEA 12.0.4 + Chrome while remote debugging Javascript. My debugging session gets at a point where there is no breakpoint set at all. In my case, it is the last line of my script. The same happens with Chrome debugging. Since both tools are having the same problem, I assumed there is something wrong with the script file.

Is there a solution to this annoying problem?

PS: Versioning system is Git.

Pics attached:

http://s12.postimage.org/n8sz1uyq5/Screen_Shot_2013_03_17_at_9_05_41_AM.png http://s8.postimage.org/3lv46pnit/Screen_Shot_2013_03_17_at_9_06_51_AM.png

解决方案

The reason was that the browser was not reloading the code correctly and was caching all the contents. Here is the instruction for Mac users (Close enough for other users).

First in Intellij IDEA you should invalidate the cache by going to File --> Invalidate Caches

Second, in Chrome, Press Cmd + alt + Backspace (You can also go to Settings --> History ---> Clean Browsing Data). Check empty the Cache and click on Clear Browsing Data.

In Firefox, By going into Pretences and inside Privacy tab, click on clear your recent history. From the "Clear All History" check Everything as Time Range and check Cache and then click on Clear Now button.

(You get the idea for all browsers here ...)

Stop the debug server, and re-start it. It should be OK now!

这篇关于在远程调试模式下,在一行没有断点处停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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