BPX (INT3)
C++:
-
//----- do stuff
-
#ifdef _DEBUG
-
if (IsDebuggerPresent()) //debugger present?
-
{
-
asm { INT 3 } //breakpoint here, something went wrong analyze your code ; )
-
Beep();
-
}
-
#endif
-
//----- do more stuff
related things:
Author: Raz | On February 22nd, 2007 | C/C++, C++ Builder | 2 Comments
Q: So what can I do next?
A: You can Buy me a Beer or Coffee. You can say Hi! or peek on the related stuff. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Spammers: Beware of » my Dog! «





2 Responses to “BPX (INT3)”
April 28th, 2007 at 9:28 pm
Asta e protectie impotriva softice ? sau dissasemblers ?
pui nop in locul codului de mai sus si ai scapat de griji ..
April 28th, 2007 at 10:19 pm
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...