CLion not debugging one of my targets - immediate `Process finished with exit code 0`

I'm on a Mac using Clang 6. I have a project with a few targets and they all worked as expected until recently when suddenly I could not debug my unit tests. I give the command to debug and it immediately comes back with

Process finished with exit code 0
Empty test suite.

I can run the target from within CLion (or outside of it) and it runs as expected. I can debug other targets as expected.

CLion is building the un-debug-able target as expected. I've created additional CLion configurations with the program and none of them will debug it correctly - whether set up as a "normal" app or as a google test app in CLion.

I don't have my CLion config files in version control and CLion's local history isn't available on them - the option is greyed out.

I don't know what information to post here and I'm hoping someone else has seen something like this or can guess what I might have done. I've rebooted my computer as well as "invalidate caches and restart" in CLion. None of them had any effect.

1 Answer

In preferences, build execution and deployment, Toolchains, debugger, switching from bundled lldb to bundled gdb, debugging the program (may not have been required), then switching back to bundled lldb fixed the problem.

I have no idea what the actual problem was or how this fixed it, but it did.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like