Skip to content

Commit f26dcb2

Browse files
bors[bot]rezural
andauthored
Merge #9347
9347: add note about passing cfg(debug_assertions) r=matklad a=rezural add note about passing cfg(debug_assertions) to rustc on build. The server will not spin on start without this arcane hack Co-authored-by: rezural <[email protected]>
2 parents 3898387 + 530ee4f commit f26dcb2

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)