I am debugging my cargo project. I build it using --release
flag generally. But when I saw the stack trace in gdb, it was not very readable. I figured out that I could create debug symbols with debug=true
in Cargo.toml.
Can I still use --release
flag with cargo build ? Are these not contradicting? This is what the terminal help for the flag says -
--release Build artifacts in release mode, with optimizations
I ask this for clarity beforehand as a debug run takes several hours for me to hit the issue.