<p>As Jonas said above, however ensure that <code>daemon</code> is NOT set to <code>1</code> in <code>bitcoin.conf</code> (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).</p>

CC BY-SA 4.0
2018-11-11T23:50:34.713Z
2018-11-11T23:50:34.713Z
riordant
<p>I can recommend the Qt Creator IDE or Xcode on OSX. The later has (since Xcode 8) problems auto-completing C++.</p>

<p>If you use Qt Creators IDE, you can also debug the Qt objects natively.</p>

<p>In Qt Creator, do the following:</p>

<ol>
<li>Install all dependencies</li>
<li><code>git checkout https://github.com/bitcoin/bitcoin</code></li>
<li><code>./autogen.sh</code></li>
<li><p><code>./configure --enable-debug</code> (maybe more)</p></li>
<li><p>Then, create new project in Qt-Creator "import project from existing 
source".</p></li>
<li><p>Go to project settings / run, select <code>src/qt/bitcoin-qt</code> (or <code>src/bitcoin</code>) as executable</p></li>
<li><p>Happy debugging / coding.</p></li>
</ol>

CC BY-SA 3.0
2016-12-12T09:43:12.087Z
It's working but the breakpoints did not stop process. I want to see some variables and set breakpoint in line I need to view, but when I call in bitcoin-qt console command I need, the breakpoint did not work. Please help to set it correctly.
Denis Leonov
CC BY-SA 3.0
2016-12-12T09:46:56.330Z
I make "Run". And think that it is not correct. So when I make "Debug run", the IDE ask me to specify "Debugger command" and I don't know where to find it. So I think here is my fault. Please help me.
Denis Leonov
CC BY-SA 3.0
2016-12-12T12:47:32.580Z
Did you select the "Executable" in the "Project settings"?
Jonas Schnelli
CC BY-SA 3.0
2016-12-12T13:05:46.067Z
Yes. I select the "Executable". But my IDE is Netbeans, not QT. So maby your example is not fully suitable for this.
Denis Leonov
CC BY-SA 3.0
2016-12-06T13:10:39.460Z
2016-12-08T07:43:28.863Z
2016-12-08T07:43:28.863Z
Jonas Schnelli
<p>After downloading bitcoin source from <a href="https://github.com/bitcoin/bitcoin" rel="noreferrer">github</a> 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?</p>

<bitcoin-core-development>
How to open bitcoin source in IDE?
Denis Leonov
# How to open bitcoin source in IDE?

(Asked by: username_0 on 2016-12-06)

After downloading bitcoin source from [github](https://github.com/bitcoin/bitcoin) 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?

**Tags:** bitcoin-core-development


---

## 2 answers

### Answer by username_2 on 2016-12-06. Score: 6 | Accepted answer

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:

1. Install all dependencies
2. `git checkout https://github.com/bitcoin/bitcoin`
3. `./autogen.sh`
4. `./configure --enable-debug` (maybe more)
5. Then, create new project in Qt-Creator "import project from existing
   source".
6. Go to project settings / run, select `src/qt/bitcoin-qt` (or `src/bitcoin`) as executable
7. Happy debugging / coding.

> **Comments:**
> **username_0**: It's working but the breakpoints did not stop process. I want to see some variables and set breakpoint in line I need to view, but when I call in bitcoin-qt console command I need, the breakpoint did not work. Please help to set it correctly.  
> **username_0**: I make "Run". And think that it is not correct. So when I make "Debug run", the IDE ask me to specify "Debugger command" and I don't know where to find it. So I think here is my fault. Please help me.  
> **username_2**: Did you select the "Executable" in the "Project settings"?  
> **username_0**: Yes. I select the "Executable". But my IDE is Netbeans, not QT. So maby your example is not fully suitable for this.  

---

### Answer by username_1 on 2018-11-11. Score: 1

As username_2 said above, however ensure that `daemon` is NOT set to `1` in `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).


---

