For those of you using the BWS GUI, here is a debug tip.

 

I have coded the ‘Note’ command set to the sub or function name in each of my subs or functions, like this

 

Sub Main_Driver()

 

Dim nResponse As Integer

 

    On Error GoTo errorHandler

    Note = "Main_Driver"

    .

    .

    .

 

Then, when I am testing, and especially if I get caught in a loop somewhere, I can tell what sub or function the issue is in by looking at the BWS Note box, and from the status box, I know what the last command was. That narrows it all down very quickly, rather than having to do a bunch of educated guessing.

 

Additionally, if it is a loop problem, and the script is still running, I can dynamically add a breakpoint inside the loop, and stop the script so that I can examine it.

 

Hope this helps with your debugging,

Lew Hundley
Information Specialist - Programmer
Silverton Hospital
Silverton
Oregon
503.873.1657
[EMAIL PROTECTED]

 

Reply via email to