# Debugging with Xcode 7

**URL:** <https://forum.juce.com/t/debugging-with-xcode-7/24407>\
**Category:** General JUCE discussion\
**Created:** [September 27, 2017, 10:53pm UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407 "2017-09-27T22:53:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [September 27, 2017, 10:53pm UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407/1 "2017-09-27T22:53:09Z")

</div>

Hi guys,

I can’t find a way to use the Xcode console to print some stuff while debugging a plugin.  
I have attached my Studio One DAW to Xcode which is working properly with breakpoints and jasserts, but when using the DBG macro from Juce, it is not printing anything to the console.

The standalone does print stuff to the console.

Am I missing something?

Thank you,  
Jelle

---

<div class="post-metadata">

**Author:** ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)\
**Post date:** [September 28, 2017, 12:42am UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407/2 "2017-09-28T00:42:45Z")

</div>

Use FileLogger to create an output log file.

Rail

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [September 28, 2017, 6:19am UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407/3 "2017-09-28T06:19:43Z")

</div>

I don’t want to write to a log file.  
I want feedback in the Xcode console in real time.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [September 28, 2017, 7:53am UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407/4 "2017-09-28T07:53:39Z")

</div>

Try another host? I’ve never had a problem with that, but it could be because studio1 is doing something funny involving console redirection.

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [September 28, 2017, 9:16am UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407/5 "2017-09-28T09:16:16Z")

</div>

I tried with Max MSP, Mainstage, and AU Lab.

It’s still not working.

---

<div class="post-metadata">

**Author:** ![daniel](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/daniel/32/790_2.png) [@daniel](https://forum.juce.com/u/daniel)\
**Post date:** [September 28, 2017, 9:35am UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407/6 "2017-09-28T09:35:58Z")

</div>

- Guess: did you accidentally switch to release build? DBG will not be executed in release builds afaik.
- Idea: you can start your host in the terminal, I usually find my DBG prints there…

HTH

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [September 28, 2017, 10:21am UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407/7 "2017-09-28T10:21:02Z")

</div>

Running from the terminal does work!

Strange, because debugging with breakpoints does work, but DBG doesn’t.

---

<div class="post-metadata">

**Author:** ![yfede](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/yfede/32/506_2.png) [@yfede](https://forum.juce.com/u/yfede)\
**Post date:** [October 2, 2017, 8:03am UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407/8 "2017-10-02T08:03:35Z")

</div>

FYI, also Pro Tools requires you to follow your DBGs on the terminal.  
Just in case you ever need to debug your product there too.

---

<div class="post-metadata">

**Author:** ![jellebakker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jellebakker/32/17053_2.png) [@jellebakker](https://forum.juce.com/u/jellebakker)\
**Post date:** [October 2, 2017, 8:21am UTC](https://forum.juce.com/t/debugging-with-xcode-7/24407/9 "2017-10-02T08:21:36Z")

</div>

Thank you, good to know!
