Search here for all the info you want in this Blog

Debugging without Debugger


 Using Global Debug Flag
     A global debug Flag is simply a Boolean variable that has global scope in your script. Once you have defined a global debug flag, anywhere in your script you can insert code that executes only when the flag is equal to True. (Step In, Step out & Step Over)

Outputting Debug Messages
     Debug messages can be used many purposes, depending on the information required, Example : A Log file can be implemented to report all the significant program events.(Add Watch)

Inserting Temporary Test Code
     If you want to execute test code only while in debug mode.This is especially useful when you are trying to track down a stubborn logic bug in your code.(Break points)

No comments:

Post a Comment