You are here: Home » Builder » C++ » BPX (INT3)

BPX (INT3)

22 February |

1
2
3
4
5
6
7
8
9
//----- do stuff
#ifdef _DEBUG
   if (IsDebuggerPresent())  //debugger present?
   {                       
                asm { INT 3 } //breakpoint here, something went wrong analyze your code  ; )
                Beep();
   }
#endif
//----- do more stuff
You like this post? Be the first of my friends to give me a beer! click here. Thanks!
Filed under

Builder, C++

| Tags:

, ,

2 Comments.

  1. cine a zis ca e protectie? :)) e un #ifdef _DEBUG mai sus daca nu ai observat, nu face decat sa-ti introduca un breakpoint in IDE/codul -ul tau atunci cand esti pe debug…

  2. Asta e protectie impotriva softice ? sau dissasemblers ? :)) pui nop in locul codului de mai sus si ai scapat de griji ..