Xcode debugger - why can you only step through so far into Apple framework code?

What you are experiencing is the run loop. The run loop is responsible for finding events for the application to process and sending them to the proper handler. It does this by calling the operating system to ask for the next event.

If the system doesn't have any events pending for that application, it will put the application to sleep until it gets one. Then it will return the new event and the run loop will process it.

What you are experiencing is the run loop. The run loop is responsible for finding events for the application to process and sending them to the proper handler. It does this by calling the operating system to ask for the next event.

If the system doesn't have any events pending for that application, it will put the application to sleep until it gets one. Then it will return the new event and the run loop will process it. However, since the application passes control to the operating system to get the event, the debugger isn't allowed to see what is happening until after control returns to the application.

Since it is in the process of stepping over the only instruction it sees, the debugger sees the application as running. Xcode reports this to you and activates the simulator so that you can see what it is doing while it runs. As soon you perform an event in the simulator, the OS sees that there is an event pending for the application and wakes it up, returning control to the run loop.

The debugger sees this as finishing the step over the last instruction and allows you to continue stepping normally. From this point, you could step through all of the event processing code the application uses, and, if you step into calls, possibly even get back into your code, before going back to the run loop to await the next event again.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions