断点后浏览器刷新 [英] Browser refresh after breakpoint

查看:147
本文介绍了断点后浏览器刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我发疯的事情,突然对我所有团队成员开始了。
如果您在断点处暂停几秒钟,然后继续(F8),浏览器将刷新页面。

Something that drives me crazy, it started suddenly to all my team members. If you pause at a breakpoint for more than a couple of seconds and then continue (F8) the browser refreshes the page.

它发生在我们的Mac和Windows计算机。

it happens on our mac and windows machines.

我们正在使用gulp和浏览器同步运行AngularJS项目。
即使我转过所有观察者,它仍然会发生。

We are running an AngularJS project with gulp and browser-sync. Even if i turn of all the watchers it still happens.

我该怎么办?

推荐答案

browserSync.init({
文件:['./**/* '],
startPath:'/ src',
服务器:'',
watchOptions:{
被忽略:'node_modules / *',
ignoreInitial:true
},
套接字:{
客户端:{heartbeatTimeout:60000}
}
});
在您的browserSync初始化中添加套接字对象。

browserSync.init({ files: ['./**/*'], startPath: '/src', server: '', watchOptions: { ignored: 'node_modules/*', ignoreInitial: true }, socket: { clients: { heartbeatTimeout: 60000 } } }); add socket object in your browserSync init.

这篇关于断点后浏览器刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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