Chrome DevTools不允许我在某些行上设置断点 [英] Chrome DevTools won't let me set breakpoints on certain lines

查看:187
本文介绍了Chrome DevTools不允许我在某些行上设置断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在上图中,我尝试在从437行到443行的每一行上设置断点.但是,我无法在439和440行上设置断点.当函数运行时,在437、438、441和434行上设置断点. 442被忽略. Chrome在第443行中断.这意味着我无法在第一个条件运行之前进行一些调试.

In the image above, I tried setting breakpoints on every line from line 437 to line 443. However, I cannot set breakpoints on lines 439 and 440. When the function runs, the breakpoints on lines 437, 438, 441, and 442 are ignored. Chrome breaks on line 443. This means that I cannot do some debugging before the first conditional runs.

当我单击第439或440行时,断点出现半秒钟,然后跳转到第443行.

When I click on lines 439 or 440, the breakpoint appears for half a second and jumps to line 443.

这是一个错误还是我遗漏了一些东西?如何在第439行或之前设置断点?

Is this a bug or am I missing something? How do I set a breakpoint at or before line 439?

推荐答案

如果您使用的是js缩小和源映射,请确保它们与您的源代码保持最新.

If you are using js minification and sourcemaps, ensure that they are up to date with your source code.

这篇关于Chrome DevTools不允许我在某些行上设置断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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