Re:A few useful Xcode debugging tricks
by Veserv on Tuesday August 17, 2021 @03:31PM
(#28213866)
Only if they are implemented inefficiently or your application is constrained in a way that precludes efficient implementation.
As long as you can inject code and steal some memory you can just directly patch in the code snippet and patch in a branch instead of a breakpoint instruction. This is functionally equivalent to a adding a print statement, just at runtime instead of compile time, so should not be significantly slower.
As long as you can inject code and steal some memory you can just directly patch in the code snippet and patch in a branch instead of a breakpoint instruction. This is functionally equivalent to a adding a print statement, just at runtime instead of compile time, so should not be significantly slower.