[英]My chrome browser hint breakpoint in the wrong line when I debug JavaScript code in pages
I use google chrome for many years. 我使用谷歌浏览器很多年了。 Recently I use chrome to debug JavaScript code in my project, I just set the breakpoint using chrome dev-tool that these breakpoints seems to be ignored, but the js function certainly be executed. 最近,我使用chrome调试项目中的JavaScript代码,我只是使用chrome dev-tool设置了断点,这些断点似乎被忽略了,但是js函数肯定可以执行。 My JS code and the breakpoint position like this picture: js breakpoint can't be hint 我的JS代码和断点位置如下图所示: js断点无法提示
When I the breakpoint is hinted, the hint line is the wrong line and the variables are present the message "xxx is not defined": hint breakpoint in the wrong line 当我提示断点时,提示行是错误的行,并且变量出现了消息“未定义xxx”: 提示断点在错误的行中
My OS is Windows 10, chrome edition is 72.0.3626.119. 我的操作系统是Windows 10,Chrome版本是72.0.3626.119。
One Possible reason for that is by mistake you might have the Deactivate Breakpoint enabled. 一种可能的原因是错误地启用了停用断点。 Because of that the chrome debugger not stopping on any breakpoints. 因此,Chrome调试器不会在任何断点处停止。 Attaching 2 image for references, where the first one is enabled for breakpoints Image with enabled breakpoints and the second one Image with disabled breakpoints is disabled. 附加2个图像以供参考,其中第一个图像启用了断点 ,第二个图像禁用了断点 ,第二个图像禁用了断点 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.