How do I set a malloc_error_break in Xcode4? Also, I seem to be getting this error malloc: *** error for object 0x4d80814: incorrect checksum for freed object - object was probably modified after being freed.
Is there anyway I can check what object 0x4d80814 is? It doesn't show up in the variables list in the debugger.
I think this is how its done.
Usually it is caused by objects being created as subobjects of other objects that don't exist yet (ie SKPhysicsBody being created before its spritenode exists)
This is what the breakpoints button looks like:
And this is the plus sign at the bottom left hand corner:
Man, it took me a while to find both of them!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With