Debugging in XCode


    BobTheDog's icon
    BobTheDog's icon
    Dec 05 2009 | 7:11 pm
    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

    • Emmanuel Jourdan's icon
      Emmanuel Jourdan's icon
      Emmanuel Jourdan
      Dec 05 2009 | 9:29 pm
      Make sure that you use a development build. You might also want to make sure that there's no optimization done by gcc.
    • BobTheDog's icon
      BobTheDog's icon
      Dec 06 2009 | 9:41 am
      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.
    • BobTheDog's icon
      BobTheDog's icon
      Dec 06 2009 | 10:56 am
      Made a project from scratch and debugging works fine!
      Thanks for the help
    • Timothy Place's icon
      Timothy Place's icon
      Timothy Place
      Dec 07 2009 | 2:11 pm
      Sometimes this can happen if the executable is set up and then the path to executable changes.
      YMMV, Tim
    • Monami's icon
      Monami's icon
      Dec 19 2009 | 5:46 am
      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!
    • tunglutti's icon
      tunglutti's icon
      Apr 22 2010 | 8:05 pm
      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
    • andrea agostini's icon
      andrea agostini's icon
      andrea agostini
      Apr 22 2010 | 10:07 pm
      go in Project->New Custom Executable and choose Max/MSP Runtime aa
    • tunglutti's icon
      tunglutti's icon
      Apr 23 2010 | 10:46 am
      That did the trick. Thanks Andrea!
    • gusadel's icon
      gusadel's icon
      Oct 21 2010 | 1:35 pm
      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.