Skip to content

Commit 530ee4f

Browse files
authored
add note about passing cfg(debug_assertions)
add note about passing cfg(debug_assertions) to rustc on build. The server will not spin without this arcane hack
1 parent 9d60d75 commit 530ee4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/dev/debugging.md

+5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ If you need to debug the server from the very beginning, including its initializ
6565
}
6666
```
6767

68+
However for this to work, you will need to enable debug_assertions in your build
69+
```rust
70+
RUSTFLAGS='--cfg debug_assertions' cargo build --release
71+
```
72+
6873
## Demo
6974

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

0 commit comments

Comments
 (0)