Equivalent of 'int 3' on ARM/iOS processors
According to an answer for the question Breaking into the debugger on iPhone the equivalent is asm("trap")
. But see the other answers for different techniques.
Especially look into conditional breakpoints which is a less invasive method.
When dealing with macOS ARM:
- Clang's
__builtin_debugtrap();
function should generate necessary break instruction. - If that won't work, try
asm("brk #0x1");