简体   繁体   English

当我在页面中调试JavaScript代码时,我的Chrome浏览器提示断点在错误的行中

[英]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.

相关问题 如何在Ipad上安装的Chrome浏览器上调试Web应用程序的Javascript代码 - How to debug Javascript code of web application on Chrome browser installed on Ipad TestComplete:为什么我的Javascript代码仅在有断点时才起作用? - TestComplete: Why does my Javascript code only works when there is a breakpoint? 如何在 Chrome 浏览器上使用 vs 代码在 webpack 上调试? - how do I debug on webpack with vs code on chrome browser? 如何从 Chrome 中的代码设置 JavaScript 断点? - How to set a JavaScript breakpoint from code in Chrome? 我正在尝试在浏览器中制作 javascript 绘图程序,但事情未对齐。 我的代码有问题吗? - I'm trying to make a javascript drawing program within the browser and things are misaligned. Is there something wrong with my code? Javascript在远程调试模式下在没有断点的行处停止 - Javascript Stops at a line without a breakpoint in remote debug mode 当我使用浏览器操作Javascript打开新标签页时,Google Chrome关闭,不知道为什么 - Google Chrome closes when I open a new tab using my browser action Javascript, no idea why VSCode - Chrome调试 - 未验证的断点 - VSCode - Chrome Debug - Unverified Breakpoint 我在测试 javascript 时在浏览器中使用的控制台没有显示发生错误的错误行 - The console I use in my browser when I test javascript is not displaying the error line in which the error occurred 在Chrome Devtools中调试Javascript时,遇到DOM断点后如何继续? - When debugging Javascript in Chrome Devtools, how can I continue after hitting a DOM breakpoint?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM