且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“设置下一条语句”功能存在于Chrome的开发工具或Firebug中?

更新时间:2022-05-03 04:31:43

Chrome DevTools没有设置下一个语句,您可以通过编辑JavaScript来更明确地定义下一个语句而在断点处暂停。

While Chrome DevTools doesn't have "Set Next Statement", you can more explicitly define next statement by just editing the JavaScript while it's paused at the breakpoint.

我已经为截屏您要显示Chrome DevTools Live Edit +断点调试。

I've made a short screencast for you to show Chrome DevTools Live Edit + Breakpoint Debugging.

本质上:在断点处,通过单击脚本面板并进行更改即可实时编辑脚本。命中 cmd + s 保存。然后再通过该代码进行新的更改。比起绕过代码更强大,您也可以添加新功能。

In essence: while at a breakpoint, live edit your script by clicking into the Scripts panel and making changes. Hit cmd + s to save. Then walk through that code with its new changes. Far more powerful than just bypassing code, you could be adding new functionality as well.