Does the “Set next statement” feature exist in Chrome's Dev Tools or in Firebug?

前端 未结 1 1023
迷失自我
迷失自我 2021-02-05 00:10

IE\'s development tools, more specifically its JavaScript debugger, offer a \"Set next statement\" command, which enables you to specify which statement should be executed next.

1条回答
  •  被撕碎了的回忆
    2021-02-05 00:47

    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.

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

    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.

    0 讨论(0)
提交回复
热议问题