Debugging ​
rust-lldb ​
rust-lldb can be used to get panic information from debug builds.
Enable debug symbols:
toml
[profile.release]
debug = true
strip = false
panic = "unwind"
Build the binary:
bash
cargo build --release -p oxc_cli --bin oxlint --features allocator
Run the binary:
bash
rust-lldb -- ./target/release/oxlint
Once it launches, press r
for running the program.