Skip to content

Commit 39f2bfb

Browse files
authored
docs: update local debugging command (#9522)
fix doc after command was renamed Renaming happened in commit 5458f29
1 parent 25661fe commit 39f2bfb

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

website/docs/en/contribute/development/building.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ pnpm i
1717
## Building Rspack
1818

1919
- Run `cargo build` to compile Rust code.
20-
- Run `pnpm run build:cli:debug` to compile both Node.js and Rust code.
20+
- Run `pnpm run build:cli:dev` to compile both Node.js and Rust code.
2121

2222
The built binary is located at `packages/rspack-cli/bin/rspack`.

website/docs/en/contribute/development/debugging.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
1. Install `go install github.com/go-delve/delve/cmd/dlv@latest`
66
2. Install VS Code extension [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) and [CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)
7-
3. build `@rspack/cli` and napi binding by run `pnpm install && pnpm -w build:cli:debug`
7+
3. build `@rspack/cli` and napi binding by run `pnpm install && pnpm -w build:cli:dev`
88
4. In VS Code's `Run and Debug` tab, select `debug-rspack` to start debugging the initial launch of `@rspack/cli`. This task can be configured in `.vscode/launch.json`, which launches the Node and Rust debugger together.
99

1010
## Tracing

website/docs/zh/contribute/development/building.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ pnpm i
1717
## 构建 Rspack
1818

1919
- 执行 `cargo build` 编译 Rust 代码。
20-
- 执行 `pnpm run build:cli:debug` 编译 Node.js 和 Rust 代码。
20+
- 执行 `pnpm run build:cli:dev` 编译 Node.js 和 Rust 代码。
2121

2222
被编译的二进制产物位于 `packages/rspack-cli/bin/rspack`

website/docs/zh/contribute/development/debugging.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
1. 安装 `go install github.com/go-delve/delve/cmd/dlv@latest`
66
2. 安装 VS Code 扩展 [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)[CodeLLDB](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb)
7-
3. 通过执行 `pnpm install && pnpm -w build:cli:debug` 构建 `@rspack/cli` 和 napi binding
7+
3. 通过执行 `pnpm install && pnpm -w build:cli:dev` 构建 `@rspack/cli` 和 napi binding
88
4. 在 VS Code 的 `Run and Debug` 栏中, 选择 `debug-rspack` 开始调试 `@rspack/cli` 的启动过程。 该任务可以在 `.vscode/launch.json` 中配置,会同时启动 Node 和 Rust 的调试器。
99

1010
## Tracing

0 commit comments

Comments
 (0)