Neither Bundled LLDB or Bundled GDB working
I have not been able to get my debugger to stop at breakpoints. I'm using Clion 2018.1.5 on MacOs Catalina 10.15.4.
I found this article on StackOverflow and attempted all the relevant solutions proposed. I set the build configuration to debug as described (it actually already was). I checked my build toolchain and saw my debugger was set by default to LLDB. The LLDB version was 5.0.1.
A little searching led me to this article at the visual studio code website that LLDB isn't working on Catalina, There were solutions listed at that link but they were for Xcode and/or VSCode, so I don't know how to apply them in Clion.
A little more researching suggested I could switch my debugger to GDB, so I tried that. When I attempt that I get the following error:
BFD: /Users/jimstewart/Git/GfGCppSearch/cmake-build-debug/GfGCppSearch: unknown load command 0x32
BFD: /Users/jimstewart/Git/GfGCppSearch/cmake-build-debug/GfGCppSearch: unknown load command 0x32
"/Users/jimstewart/Git/GfGCppSearch/cmake-build-debug/GfGCppSearch": not in executable format: File format not recognized
The proposed solution was to download GDB from GitHub which might have a patch that fixes it, build it, and replace the version I have. I don't know how to do that, but I can probably figure it out. But before I do I want to ask if there is a solution other people have tried.
I am open also to the possibility there is something stupid and obvious I should be doing because I'm new to both Clion and C++.
Has anyone else running Clion on Mac, especially Catalina, encountered this error? What fix do you recommend I take?
Please sign in to leave a comment.
LLDB definitely works on Catalina. I've been using it in all my projects. Unfortunately, I'm running a newer version of CLion than you so I won't be able to help.
Well, I'll try updating clion and see if that works.
Hey, I guess it's just because I had an old version! I updated it and it works now.