.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   set breakpoints programatically (http://forums.bots-united.com/showthread.php?t=514)

Pierre-Marie Baty 26-01-2004 14:45

set breakpoints programatically
 
had this question popping up in my mind in the beginning of this afternoon, then Stefan passed by (always wasting time around, this guy :D) and we met on IRC and 5 minutes after the answer was found, one browsing his MSDN CDs and the other one Googling around at msdn.microsoft.com. I really love that sort of cooperation between bot coders at Bots United 8)

Found this loveable DebugBreak() function, which on intel machines, does basically this:
Code:

_asm int 3
the effect of this is similar as if you had set a breakpoint at this location. This enables you to break in your code on request (for example, by bringing down the console and typing a server command...)

So here it is, for those who might be interested.

Handy, eh ? 8)


All times are GMT +2. The time now is 22:38.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.