开发者

Problems mousing over variable names in iPhone debugger

开发者 https://www.devze.com 2022-12-26 19:18 出处:网络
I\'m attempting to do some debugging in GDB for an iPhone app issue.When I mouse over a string variable to see the contents the console goes into an infinite scroll with the text \"Unable to access va

I'm attempting to do some debugging in GDB for an iPhone app issue. When I mouse over a string variable to see the contents the console goes into an infinite scroll with the text "Unable to access variable ".

Any ideas on wh开发者_Python百科y this might be happening?


For future reference, there are several major causes:

  • Target-level optimization settings: there should be no optimization
  • Target-level strip symbols: symbols should not be stripped
  • Target-level level of debugging symbols: default or all symbols should be used
  • Per-file compiler flags (get-info on file, choose Debug tab): Make sure there are no optimization per-file settings as there is no way to specify in what configuration (debug or release) they should be used, so they're always used.

I go into more detail here.


I had the same problem and setting configuration to Debug fixed it... quite reasonable :P

Credits to @AranMulholland comment!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号