Skip to content

Commit 6d1c23c

Browse files
authored
docs: update /guide/debugging.html (#786)
<!-- 感谢你的贡献! --> ### 在提交PR之前,请确保您执行以下操作: - [x] 曾阅读过[翻译须知](https://github.com/vitest-dev/docs-cn/issues/391)。 - [x] 检查是否已经有PR以同样的方式解决问题,以避免创建重复。 - [x] 在此PR中描述正在解决的问题,或引用它解决的问题(例如:`fixes #123`)。 --- ### 描述 <!-- 请在此处插入您的描述,并提供有关此PR正在解决的 “内容” 的特别信息 --> 更新 [指南/调试](https://cn.vitest.dev/guide/debugging.html) 尚未翻译内容 ### 附加上下文 <!-- 例如,你有什么想让代码审核的人重点关注的内容。 --> #773
1 parent f2a17c2 commit 6d1c23c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guide/debugging.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,18 @@ vitest --inspect-brk=127.0.0.1:3000 --browser --no-file-parallelism
128128

129129
然后在调试模式下运行此配置。IDE 将在编辑器中设置的 JS/TS 断点处停止。
130130

131-
## Node Inspector, e.g. Chrome DevTools
131+
## Node 解释器, 例如 Chrome开发者工具
132132

133133
Vitest 还支持在没有 IDE 的情况下调试测试。然而,这要求测试不是并行运行的。可以使用以下命令之一启动 Vitest。
134134

135135
```sh
136-
# To run in a single worker
136+
# 在单个线程内运行测试
137137
vitest --inspect-brk --pool threads --poolOptions.threads.singleThread
138138

139-
# To run in a single child process
139+
# 在单个子进程内运行测试
140140
vitest --inspect-brk --pool forks --poolOptions.forks.singleFork
141141

142-
# To run in browser mode
142+
# 使用浏览器模式运行测试
143143
vitest --inspect-brk --browser --no-file-parallelism
144144
```
145145

0 commit comments

Comments
 (0)