▲ | t_mahmood 5 days ago | ||||||||||||||||||||||
Maybe someone can give me idea, how can I debug this particular rust app, which is extremely annoying. It's a one of Rustdesk. It won't run if I compile with debug info. I think it's due to a 3rd party proprietary library. So, to run the app I have to use release profile, with debug info stripped. So, when I fire up gdb, I can't see any function information or anything, and it has so many system calls it's really difficult to follow through blindly. So, what is the best way to handle this? | |||||||||||||||||||||||
▲ | yrand 5 days ago | parent | next [-] | ||||||||||||||||||||||
I'd investigate why it won't run with debug info in the first place. That feels like the core problem here, because it prevents you from using some debug tools. Of course that may require digging down pretty low, which is difficult in itself. Edit: also there's split-debuginfo which puts debug info in separate file. It could help if the reason you can't run it is the debug info itself. Which feels unlikely, but :shrug:. | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | tomjakubowski 5 days ago | parent | prev | next [-] | ||||||||||||||||||||||
You can add debug info to release builds. In Cargo.toml:
https://doc.rust-lang.org/cargo/reference/profiles.html#debu... | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | mrugge 5 days ago | parent | prev [-] | ||||||||||||||||||||||
claude code cli | |||||||||||||||||||||||
|