views:

65

answers:

1

Hi,

When using visual studio to develop c++ applications, I used to write _asm int 3; and then build the application. When the application is executed, if the code path that has "_asm int 3" is encountered Visual Studio Debugger used to get lauched and I could debug the problems.

Is there any similar approach when developing using Xcode on Mac OS X?

Thanks a lot.

Mark

+1  A: 

Debugger() is the gcc equivalent

Josh Knauer
That only works if the app is launched under Xcode. There's no mechanism for a Mac OS X application to, under exceptional conditions, go and launch the IDE and get itself attached to the debugger as the OP describes.
cdespinosa