Skip to content

Commit

Permalink
Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Jan 8, 2024
1 parent 93ad8a8 commit ed2897b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions FireDBG/blog/2023-12-13-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -488,11 +488,22 @@ fn main() {

<Image src="/img/gt-binary-light.png"/>

We can use the FireDBG CLI to pass additional parameters to the Rust binary:
We can add a `[[target]]` entry in `firedbg.toml` to create additional profiles:

```toml
[[targets]]
name = "quicksort_100"
target.type = "binary"
target.name = "quicksort"
argv = ["100", "--seed", "1212"]
```

See the [full example](https://github.com/SeaQL/FireDBG.Rust.Testbench/blob/main/getting-started/firedbg.toml).

Or use the FireDBG CLI to pass additional parameters to the Rust binary:

```shell
# Randomly generate 18 numbers with the random seed 2828, then sort it in ascending order
firedbg run quicksort -- 18 --seed 2828
firedbg run quicksort -- 100 --seed 1212
```

### Debugging Examples
Expand Down

0 comments on commit ed2897b

Please sign in to comment.