Breakpoints in c++ code not triggered

I am trying to use Xcode (v6.3.2) to debug my C++ command line application. I have setup an external build target that calls `make` and successfully builds my application. I have also modified the Run scheme to run the built application and `"debug executable"` is checked and `"Build Configuration"` is set to `Debug`.


However, no matter what I do, I cannot get any breakpoint to trigger when I run. The application always runs successfully but just doesn't stop at any of the breakpoints.


This seems to be a very common issue and I have tried several of the suggestions that people have made over the years. One of the most common solutions I have read is to disable the "Load symbols lazily" setting under Preferences -> Debugging. However, this setting no longer seems to exist for the latest version of Xcode. I have also created an .lldbinit file with the setting as described at this URL: http://lldb.llvm.org/troubleshooting.html. The breakpoints are enabled.


In my `Makefile`, the compiler is `clang++` and the compiler flags are `-w -g -O0`.


`lldb` works just fine on the command line if I run it manually but I was hoping to be able to use Xcode and lldb together since that would make my workflow much more efficient.


Any help would be greatly appreciated.

[SOLVED] Same problem here with Xcode 6.3.2 and LLVM 6.1.0. I am using waf as an external build tool.


Breakpoints were working previously, but it stopped apparently after I changed the C++ standard library in the project's build settings. And it doesn't work changing back.

I've tried to restore a previous snapshot and it doesn't work either.


It worked for me to include the -g option for GCC (don't know why it worked before without that). But it seems this problem may have multiple causes. There is a post with somewhat detailed troubleshooting https://devforums.apple.com/message/1130832#1130832

Breakpoints in c++ code not triggered
 
 
Q