WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Tips

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:04:15:16:57:08
Last Updated: 1999:04:15:16:57:08