diff options
author | rezural <[email protected]> | 2021-06-20 02:23:20 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-20 02:23:20 +0100 |
commit | 530ee4ff8a63cce0a74117a8ae56a1435e5c634f (patch) | |
tree | cf7fb7c5ec6dbcdcdad81083f5757e036ee3cae0 /docs | |
parent | 9d60d75e1400ba82ae8d41496d8a0fb9a8edec0c (diff) |
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/debugging.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/dev/debugging.md b/docs/dev/debugging.md index 5876e71bc..48caec1d8 100644 --- a/docs/dev/debugging.md +++ b/docs/dev/debugging.md | |||
@@ -65,6 +65,11 @@ If you need to debug the server from the very beginning, including its initializ | |||
65 | } | 65 | } |
66 | ``` | 66 | ``` |
67 | 67 | ||
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 | |||
68 | ## Demo | 73 | ## Demo |
69 | 74 | ||
70 | - [Debugging TypeScript VScode extension](https://www.youtube.com/watch?v=T-hvpK6s4wM). | 75 | - [Debugging TypeScript VScode extension](https://www.youtube.com/watch?v=T-hvpK6s4wM). |