The “DEBUG” Flag Idea
In Pseudocode:
// in the main
DEBUG is TRUE // or FALSE
// inside of procedure This_Proc . . .
if DEBUG then
print (“am entering proc This_Proc”) print (“this_param: “, this_param:)
print (“that_param: “, that_param:)
endif
// code goes here
if DEBUG then
print (“am leaving proc This_Proc”) print (“this_param: “, this_param:)
print (“that_param: “, that_param:)
endif