mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
add debug tip
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
c49dc1b9d6
commit
d55ff26ae2
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ Execute `cargo fmt --all` to fix the formatting.
|
|||
|
||||
<details>
|
||||
<summary>:beetle: Debugging Tips</summary>
|
||||
|
||||
- Use a debug build of the compiler. We have many asserts enabled in the debug compiler that can alert you to something going wrong. When building from source, build the debug compiler with `cargo build --bin roc`, the binary is at roc/target/debug/roc. When using roc through a nix flake like in [basic-cli](https://github.com/roc-lang/basic-cli), use `rocPkgs.cli-debug` instead of `rocPkgs.cli`.
|
||||
- At the bottom of [.cargo/config.toml](https://github.com/roc-lang/roc/blob/main/.cargo/config.toml) we have useful debug flags that activate certain debug prints.
|
||||
- For Roc code; minimize the code that produces the issue.
|
||||
- For segmentation faults:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue