mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +00:00
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
This commit is contained in:
parent
9d60d75e14
commit
530ee4ff8a
1 changed files with 5 additions and 0 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue