Skip to content

Commit

Permalink
add note about passing cfg(debug_assertions)
Browse files Browse the repository at this point in the history
add note about passing cfg(debug_assertions) to rustc on build. The server will not spin without this arcane hack
  • Loading branch information
rezural committed Jun 20, 2021
1 parent 9d60d75 commit 530ee4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/dev/debugging.md
Expand Up @@ -65,6 +65,11 @@ If you need to debug the server from the very beginning, including its initializ
}
```

However for this to work, you will need to enable debug_assertions in your build
```rust
RUSTFLAGS='--cfg debug_assertions' cargo build --release
```

## Demo

- [Debugging TypeScript VScode extension](https://www.youtube.com/watch?v=T-hvpK6s4wM).
Expand Down

0 comments on commit 530ee4f

Please sign in to comment.