Debugging in XCode

Dec 5, 2009 at 7:11pm

Debugging in XCode

Hi Guys,

I am having no luck debugging the examples in XCode.

I build the development build of an example project

I add the max runtime as a executable using Project->Set Active Executable

I build and debug in XCode

I load a test patch using the external into the runtime.

Breakpoints are never hit and they are orange in the debugger.

Am I missing something



Dec 5, 2009 at 9:29pm

Make sure that you use a development build. You might also want to make sure that there’s no optimization done by gcc.

Dec 6, 2009 at 9:41am

Hi Emmanuel,

Thanks for the post, definitely doing a dev build with no optimisation.

I am going to try to set a project up from scratch and not based on the example code to see if I can get that going.



Dec 6, 2009 at 10:56am


Made a project from scratch and debugging works fine!


Thanks for the help


Dec 7, 2009 at 2:11pm

Sometimes this can happen if the executable is set up and then the path to executable changes.


Dec 19, 2009 at 5:46am

Also try this.. first put a breakpoint directly in the main function… I often find that if I don’t do this all my break point are ignored.. But if I put a breakpoint first in the main then all my other break point works…

I hope it help!


Apr 22, 2010 at 8:05pm

Do any of you guys know why I have no options, when I choose Project->Set Active Executable from the menu? I have put it on development build as you suggest, but nothing pops up

Apr 22, 2010 at 10:07pm

go in Project->New Custom Executable and choose Max/MSP Runtime

Apr 23, 2010 at 10:46am

That did the trick. Thanks Andrea!

Oct 21, 2010 at 1:35pm


1) I’am learning to write externals using Xcode 3.22 on Snow Leopard.
When build an object from the example folder (SDK 5.1.1) all seems to be fine. No messages error.
2) Then I’ve upload the file path from Max to the SDK Exmaples Folder,
3) When I try to load the new object, typing from Max, it appears from the autocomplete,
4) When it must be instanced by Max I receive from the Max windows the message: newobj bang: No such object.
5) I get always the same problem for any new object

Unfortunalty there are not examples on how to setup Xcode 3.22 on the web for Max externals so I’m blocked on this simple level.



You must be logged in to reply to this topic.