This is assembly code that can catch debugger with int 3
:
MOV ECX, ExceptionHandler
MOV DWORD PTR FS:[0], ExceptionHandler
INT3
///there is debugger!!!
ExceptionHandler:
////no debugger
When programmer write a C program , which code he write that compile to this trap?
I use Windows with x86