A variable in my code is being de-allocated somewhere, and i don't know where. I'm trying to debug it, but there is a lot of code to search through.
Is there a way to follow a variable, and show where it is being modified?
A variable in my code is being de-allocated somewhere, and i don't know where. I'm trying to debug it, but there is a lot of code to search through.
Is there a way to follow a variable, and show where it is being modified?
Right click on the variable in XCode's debugging window, and select "Watch variable".
Alternatively, use gdb: http://scottmcpeak.com/memory-errors/
This is discussed here in a similar topic: Tracking variable or memory change in Xcode?