Corrupted stack/heap under debugger when simulating?

后端 未结 1 743
抹茶落季
抹茶落季 2021-01-21 23:42

I\'m using Xcode 6.3.1. I\'m trying to track a weird issue in an app and now I\'m seeing that local variables seem to be incorrectly initialised. When I hit a breakpoint at the

相关标签:
1条回答
  • 2021-01-22 00:00

    A breakpoint is actually before the line it appears on; that line has not yet executed. You are thus looking too soon at this variable. It has no meaningful value until after you step past the line where it is initialized. You are still before that line so its value is random garbage.

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