Debugging Vbscript 追蹤

0
Avatar
Legacy Poster

I found a code segment here in the forums that does pretty much what I need to do.  I have implemented it making the appropriate (I think anyway) substitutions.  I don't get any errors, but it doesn't do the database update I'm expecting, either.

 

How do I go about debugging my script? 

 

My usual coding languages have simulators or msg boxes available and even debug windows to show the value of variables.  From this I can track my progress through my code to see where it might be messing up.  How do I do that with vbscript?

Thanks,

Valerie

1 意見

0
Avatar
Fernando Ramos Miracle
版主
評論操作 永久連結

Hello ValerieA,

 

Unfortunately with VB Script in BarTender you need to manually debug the code (unless you test it on an external application). A good approach is to use the "MsgBox()" method so you get a dialog at that point of the script, you can also declare certain values of variables to make sure that it's working as expected.

 

In any case, please post your code so we can take a look at it, we might be able to help.

 

Regards

登入寫評論。