简体   繁体   English

在Chrome Devtools中调试Javascript时,遇到DOM断点后如何继续?

[英]When debugging Javascript in Chrome Devtools, how can I continue after hitting a DOM breakpoint?

I'm debugging a JS code with Chrome Devtools. 我正在使用Chrome Devtools调试JS代码。 I set a DOM breakpoint, the code hit it, but I cannot continue (ie, the controls for "next line", "continue", etc. are missing)...I could only run my code again after closing the browser and opening it again... 我设置了一个DOM断点,代码命中了它,但是我无法继续(例如,缺少“下一行”,“继续”等控件)...我只能在关闭浏览器后再次运行我的代码,再次打开...

The controls aren't shown in the DOM window, but you can continue in two ways: 控件没有显示在DOM窗口中,但是您可以通过两种方式继续:

  1. In the window you're debugging, in the center at the top, there should be a small overlay saying "Paused in debugger" with a run icon. 在您正在调试的窗口的顶部中心位置,应该有一个小的覆盖物,上面写着“已在调试器中暂停”并带有运行图标。 Click the run icon. 单击运行图标。

  2. Switch to the Sources tab, which has the various buttons, and use one of those. 切换到具有各种按钮的“源”选项卡,然后使用其中之一。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Chrome仅在调试并达到断点时使用jquery.html()更新 - Chrome only updates with jquery.html() when debugging and hitting breakpoint 我怎么能在观看时更新chrome.devtools.panels? - how can i update chrome.devtools.panels when watching? 如何操作 React webapp 的 DOM(使用 Chrome DevTools)? - How to manipulate the DOM of a React webapp (with Chrome DevTools)? 我可以在Chrome开发者工具中执行Node.js javascript脚本吗? - Can I execute nodejs javascript scripts in chrome devtools? 如何识别Chrome DevTools中调用JavaScript文件的位置? - How can I identify where JavaScript files are being called from in Chrome DevTools? 如何通过 devtools(chrome、Edge 等)查看 JavaScript 使用的内存中的哪些变量? - How can I see which variables are specifically in memory used by JavaScript through devtools (chrome, Edge, etc.)? 如何在 javascript 中断后继续执行 - How can I execute continue after break in javascript 如何在 Chrome DevTools 中修复 JavaScript? - How to fix JavaScript in Chrome DevTools? 如何在Google Chrome DevTools的lambda调用中设置断点? - How to set a breakpoint at a lambda call in Google Chrome DevTools? 如何使用JavaScript将Google Chrome DevTools控制台设置为全屏显示? - How can the Google Chrome DevTools Console be made fullscreen using JavaScript?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM