48

Chrome sources debugging has buttons for step over, step into, and step out. There is no stepping backwards in time to see what were the previous functions.

4

5 回答 5

26

You can sort of go backwards if you click through in the "Call Stack" on the right side to see the parent functions.

于 2013-07-05T23:40:05.923 回答
8

正如我在这个答案中所说,您可以通过放置一个新断点并重新启动实际功能来后退一步。希望这可以解决问题。

于 2017-01-03T10:37:38.450 回答
6

我需要的是在右侧栏中,右键单击调用堆栈中的项目-> 重新启动框架。这将从第一行重新启动选定的函数。

于 2020-02-26T08:02:57.657 回答
2

我发现的一个快速解决方法是对源文件进行小幅更改,当您处于断点中间时,任何更改都可以(空格、注释等),然后按 Ctrl+s(保存文件),它会跳转返回该源中的第一个断点。然后您可以检查您的更改(F10 'step-in'),然后根据需要进行另一项更改,保存并重新启动。这是我迄今为止最快的方法。

于 2017-11-01T17:52:34.723 回答
0

这就是我一直在寻找并首先找到此链接的内容。这是我想的问题的更高级版本..

帮助搜索的正确关键字是“时间旅行调试”

在这个版本的 nodejs 中首先注意到这里,称为“Node-ChakraCore”。

https://github.com/nodejs/node-chakracore/blob/master/TTD-README.md

于 2017-10-21T10:07:23.587 回答