Running the debugger with only a shell script

Answered

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 :)

0
3 comments

Hi! On what OS do you use CLion?

0
Avatar
Permanently deleted user

Hey Anna, I'm on MacOS Mojave

0

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.

0

Please sign in to leave a comment.