Xcode debugging problem

后端 未结 3 1701
庸人自扰
庸人自扰 2021-01-24 03:41

I have a little problem with the Xcode Debugger. Looks to me the \"Step In\" function doesn\'t work like it should. Or just as I expect it to work.

I can step in any met

相关标签:
3条回答
  • 2021-01-24 04:11

    I haven't seen this problem on Xcode 3.2.3.

    However, I have seen cases where the debugger gets confused about methods called against objects returned by imbedded methods e.g.

    id myResult=[[self returnAnObject] tellObjectToDoSomething];
    

    Sometimes the debugger doesn't seem to know which method to drop into or it "forgets" that there are two method calls on the line.

    If you have customize accessors, you may always drop into the the accessor instead of the outer method (i.e.tellObjectToDoSomething.)

    0 讨论(0)
  • 2021-01-24 04:28

    In the debug project settings you must disable code optimization option with OPTIMIZATION_LEVEL = NONE.

    Good luck!

    Source: Working with Xcode Build Settings

    0 讨论(0)
  • 2021-01-24 04:33

    Turn off code optimization. In Build Settings, change:

    enter image description here To:

    enter image description here

    0 讨论(0)
提交回复
热议问题