Hey guys, I use CLang compiler to build our binaries for the MACOSX platform. I also provide the '-g' option which ensures that debugging symbols are enabled. This is my CLang command with the flags - Do note that the '-g' flag is provided I want to use XCode to debug an isssue. I issue a sleep(30) command, my program waits 30 seconds, so that gives me time to go to XCode - Debug-->Attach To Process --> mtxtests (my executable) As soon as XCode attaches, the sleep is aborted and teh execution continues! Thus, I cant debug any code. Also my XCode project has 'C++ library' as the target What could be the problem? If i remember i used to be able to debug fine when i used to use the LLVM-GCC compiler. But with Maverics, we need to move to CLang... Any suggestions would be appreciated.