Debug Routine
Keywords: debug(1)
I write in a debug routine into all my WinBatch files. This allows me at any time to step through any of my
programs by holding down the control and shift keys. It really comes in handy when you are at a users
desk and want to see what is happening. Here is the code I include at the top of all my WinBatch programs
goto begin
:debugon
Message("Debug Mode","Debug Mode Is On")
debug(@on)
:begin
if IsKeyDown(@shift || @ctrl) then goto debugon
IsKeyDown
determines if the Shift key or the Ctrl key is currently down.
Note: The right mouse button is the same as Shift, and the middle mouse button is the same as Ctrl.
Article ID: W13899
Filename: Debugging Tip.txt