Problems with Codeblocks debugging under Mac

Source: Internet
Author: User

From the beginning of the Mac to now use Xcode, a period of time to an open source TestDisk from the text interface to a graphical interface. I think of a decision with Codeblocks + QT To do, mainly do not want to use QT own IDE, perhaps is accustomed to vc,codeblocks style, parameters on the setting is very convenient.

But in the code writing, found a problem, the Mac GDB can not be debugged, and later checked the original Apple is not allowed to debug other processes, need to set up a keychain. Although I set it up on the Internet, I still can't set it up on my computer. Every time I debug, I always quit, and sometimes it just crashes!

In view of the recent writing program in Ubuntu experience, I and it on the bar, when it is OK to ponder, this evening finally Kung Fu, let me solve. I see the debug log of Codeblock when I saw it debugging some parameters of the startup time and then I copied to the command line, I found that there is a problem with gdb parameters, and then found that Apple's own gcc, or g++ is clang. The GNU G++,GCC is not the usual one. And GDB also wood, and later found in the/opt/local/bin under a ggdb, there is a lldb, and then view the respective parameters, excluding lldb Apple's own debugging, with ggdb! Set the keychain, and then the familiar scene finally appeared.


Problems with Codeblocks debugging under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.