Running the debugger with only a shell script
已回答
Trying out CLion and was able to quickly get it to build my project using a custom shell configuration, but it seems unless I port some build tool into my project, I'm basically not able to run in debug mode. Is this understanding correct? In VSCode for example I was able to configure this fairly quickly without a dependency on a build tool, but I want to stay in the jetBrains ecosystem if possible :)
请先登录再写评论。
Hi! On what OS do you use CLion?
Hey Anna, I'm on MacOS Mojave
On macOS CLion supports debugging C/C++ executables with GDB (either bundled or custom) and with the bundled LLDB. Unfortunately, there are problems in case of the latest macOS version and GDB (https://youtrack.jetbrains.com/issue/CPP-14546), so it's better to use the bundled LLDB for debugging.
In CLion the toolchain settings are stored in Preferences | Build, Execution, Deployment | Toolchains, the debugger should be selected there.