1

I'm trying to understand an Objective-C program that I downloaded. It has a lot of functions and I'm interested in what is being called, and the order that the functions are being called in.

I can accomplish this by putting a printf statement at the beginning of each function, but there are a lot of them. Is there another way?

2
  • 2
    Have you tried setting a breakpoint at the start of the program, then stepping/debugging through it? Commented Feb 26, 2012 at 2:17
  • Oh, OK, that kind of works. But it's also slow. Are there any shortcut keys or anything to make this easier? Commented Feb 26, 2012 at 5:03

1 Answer 1

3

You can use GDB and go step by step with breakpoints

http://www.cs.cmu.edu/~gilpin/tutorial/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.