Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Objective-Cプロジェクトで、Cコードを組み込んでいる場合、環境変数NSZombieEnabledは、Cコードで行った誤って割り当て解除された領域をデバッグするのに役立ちますか、それともObjective-C部分でのみ機能しますか?
これは、Objective-C オブジェクトに対してのみ機能します。オブジェクトは死ぬ代わりにゾンビに変わり、メッセージを送信しようとすると文句を言います。プレーン メモリはメッセージを受信できないため、このメカニズムは意味がありません。
一般的なメモリのデバッグには、Valgrind または同様のツールが必要です。