Vue Devtools 的时间旅行调试功能哪里去了?

Where has Vue Devtools's Time Travel Debugging feature gone?

我已经有一段时间没有使用 VueJS 了(大约 2 年前)。我想重新开始使用旧的 VueJS 2.6 应用程序,但我找不到 Devtools for Vuex 的时间旅行调试功能。

在这里您可以看到时间旅行调试应该是什么样子:

但现在至少在 Devtools 6.1.4 中,我找不到该功能。我看到 Vuex 状态,但我找不到:突变列表、突变的状态变化,以及突变之间的时间旅行能力。见下图:

那么时间旅行调试功能在哪里?

Vuex mutations/actions 的日志现在显示在时间轴 选项卡上。

但是,最新版本的 Vue DevTools (6.x) 删除了时间旅行调试(特别是恢复到特定状态的能力)。作者在GitHub discussion about this very issue:

中解释了其中的原因

This is not implemented as the functionality of the devtools changed to a timeline which is not just about the Vuex mutations but also about any other events from components, plugins such as pinia, etc.

Let's use this thread to discuss about Time traveling and how it could look/work in the Timeline.

@tkuntermannpv if you really need Vuex time traveling, please use the legacy version.

如前所述,您必须安装 5.x 版本的 Vue DevTools 才能使用该功能。