CLion with rust and gdb
已回答
Hello frens,
I'm trying to debug rust code within Clion with gdb under linux. I setup a gdbserver, which runs my application. No Im trying to connect via "Remote debug configuration", using rust-gdb as gdb executable. I installed gdb 9.2 to have a compatible version. But its not stopping at breakpoint, in gdb I get
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'gdb_rust_pretty_printing'
I looked in my .rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/etc/ and there is no such file. So I downloaded rust and looked in the tar but there this file is also missing. So do I need to install something else? Do I need to use an older version of rust?
Best regards
请先登录再写评论。
Hello!
Please try using bundled GDB. Here is the related instruction: https://www.jetbrains.com/help/clion/rust-support.html#remote-debug.