Skip to content

Commit

Permalink
Added: Small note for debugging build scripts. (#1189)
Browse files Browse the repository at this point in the history
Build scripts built on release builds may be undebuggable with more modern versions of rust.

So we should inform how to fallback to debug.
  • Loading branch information
Sewer56 authored Jan 26, 2025
1 parent d1ae2eb commit 3b196af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions MANUAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,13 @@ std::process::Command::new("code").arg("--open-url").arg(url).output().unwrap();
std::thread::sleep_ms(1000); // Wait for debugger to attach
```

(Note: You may need to update your `Cargo.toml` to build the build script with `debug`.)

```
[profile.dev.build-override]
debug = true
```

### Debugging Rust unit tests
- Create `.cargo` directory in your project folder containing these two files:
- `config` [(see also)](https://doc.rust-lang.org/cargo/reference/config.html)
Expand Down

0 comments on commit 3b196af

Please sign in to comment.