Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode C++ debugging

Tags:

c++

xcode

ios

I'm looking for a way to have the Xcode IDE pick up on the contents of my weird Boost template classes. Basically, classes complex enough that Xcode can't display their contents correctly.

Is there something like the Objective C -description method or toString() in Java that Xcode will look for?

At the moment I'm just implementing print() methods and invoking them in gdb, but that's likely to confuse other developers.

like image 932
mousebird Avatar asked Jan 13 '11 00:01

mousebird


People also ask

Can you debug in Xcode?

The Xcode/Android Studio debugger doesn't just allow you to Step Over into the next line. You can also go inside a function, Step Into, or advance to the next line outside the current method, Step Out. Or you can use the Xcode debugger commands directly or Android Studio LLDB.

How do I run Xcode in debug mode?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.


1 Answers

You can try making Custom Data Formatters for your types and the Xcode debugger will use them.

like image 191
xan Avatar answered Oct 19 '22 06:10

xan