Debugging cores in xcode/OSX

i have a few fixes on the go but have some debugging to do :slight_smile: i’ve managed to build retroarch from source via the supplied xcode project, and i’ve independently managed to build a core by creating a project and using the core’s makefile as the build target, but of course i can’t run that binary independently.

i’m not sure about the best approach to debug a core in OSX? i’ve added both projects to one xcode workspace but i’m struggling to work out how to make the built retroarch binary use the built core binary. especially as i don’t think the CLI works in OSX (?)

any guidance appreciated :slight_smile:

You can try using the executable from CLI. It seems to work for some people sometimes…?

There’s also been a lot of work recently on statically linking cores with RA outside of consoles, where static linking has always been the norm.

got it working :slight_smile: had to choose a specific build directory for the workspace, and then also set the run schema to only run the retroarch exec. i then configured RA to use the built core, which doesn’t go in my specific build directory as it’s done with a makefile which i would have to edit away from upstream to get that working, BUT it’s always in the same place so it doesn’t really matter.

now to see if xcode understands all this when i come to debug :slight_smile:

[QUOTE=dankcushions;34341]got it working :slight_smile: had to choose a specific build directory for the workspace, and then also set the run schema to only run the retroarch exec. i then configured RA to use the built core, which doesn’t go in my specific build directory as it’s done with a makefile which i would have to edit away from upstream to get that working, BUT it’s always in the same place so it doesn’t really matter.

now to see if xcode understands all this when i come to debug :)[/QUOTE]

Hello , how did you do that ? There’s an open bug, that would be great to give your input.

i don’t see how it’s related to the bug? i don’t use the command line in OSX. xcode lets you select the executable you want to run, so i’m not typing in any command lines.

@dankcushions: Can I ask you where do you get the debug traces ? And how do you configure that ?

i just navigated the crashes in the debugger but you could do something like this http://stackoverflow.com/a/15946551