After downloading bitcoin source from github I'l try to open it in Netbeans for Mac. Please tell how to open all bitcoin project for run it with breakpoints in IDE?
I can recommend the Qt Creator IDE or Xcode on OSX. The later has (since Xcode 8) problems auto-completing C++.
If you use Qt Creators IDE, you can also debug the Qt objects natively.
In Qt Creator, do the following:
- Install all dependencies
git checkout https://github.com/bitcoin/bitcoin
./configure --enable-debug(maybe more)
Then, create new project in Qt-Creator "import project from existing source".
Go to project settings / run, select
src/bitcoin) as executable
Happy debugging / coding.
As Jonas said above, however ensure that
daemon is NOT set to
bitcoin.conf (or that it's passed as an argument on startup). If it is set, breakpoints will not be triggered (and in some cases can cause the whole program to crash).