【发布时间】:2020-03-21 16:51:47
【问题描述】:
我是 rust 新手,想使用Clion(目前为 19.3)调试我的 Rust 代码,并按照this answer 将编译器从 MSVC 切换到 GNU,现在当我运行我的程序(在调试中)时,我从 Clion 得到这个错误:
com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver$GDBCommandException: Error creating process <Program Path>, (error 50).
虽然不调试也可以正常运行。
如果我用谷歌搜索错误,我会得到这个issue on github,它本质上是说在 64 位应用程序上使用 64 位编译器。我添加的编译器是 64 位的,因为我安装了 64 位版本的 rust,所以我假设它输出的程序是 64 位的......(虽然我对 rust 的了解还不够,无法 100% 确定)
运行 rustup show 会返回:
rustup show
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\User\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-gnu (default)
stable-x86_64-pc-windows-msvc
active toolchain
----------------
stable-x86_64-pc-windows-gnu (default)
rustc 1.42.0 (b8cedc004 2020-03-09)
这是我得到使用正确工具链的想法的地方(正如它所说的 x86_64 到处都是)。
我哪里出错了?什么是错过配置?
【问题讨论】:
标签: debugging rust compilation ide clion