We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a17c2 commit 6d1c23cCopy full SHA for 6d1c23c
guide/debugging.md
@@ -128,18 +128,18 @@ vitest --inspect-brk=127.0.0.1:3000 --browser --no-file-parallelism
128
129
然后在调试模式下运行此配置。IDE 将在编辑器中设置的 JS/TS 断点处停止。
130
131
-## Node Inspector, e.g. Chrome DevTools
+## Node 解释器, 例如 Chrome开发者工具
132
133
Vitest 还支持在没有 IDE 的情况下调试测试。然而,这要求测试不是并行运行的。可以使用以下命令之一启动 Vitest。
134
135
```sh
136
-# To run in a single worker
+# 在单个线程内运行测试
137
vitest --inspect-brk --pool threads --poolOptions.threads.singleThread
138
139
-# To run in a single child process
+# 在单个子进程内运行测试
140
vitest --inspect-brk --pool forks --poolOptions.forks.singleFork
141
142
-# To run in browser mode
+# 使用浏览器模式运行测试
143
vitest --inspect-brk --browser --no-file-parallelism
144
```
145
0 commit comments