Quantcast
Channel: T&T - Library Functions
Viewing all articles
Browse latest Browse all 10

DebugPrint - Display debugging messages

$
0
0
For batchfiles or functions of any size, I try to include debugging messages. Many take a '/D' (or -D) argument to turn on debugging or just relay on the environment variable 'DEBUG' to be defined.

Therefore, I created this simple function so I can put this in the code and the function will decide if a message should be printed. It then will display it in RED and prefix the text with "DEBUG: "

Code:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: DebugPrint
::
...

Read more

Viewing all articles
Browse latest Browse all 10

Trending Articles