11

I have a vbscript that works in development but not the server.

I want to debug this, but I don't want to install visual studio on the server.

What is the most lightweight way to debug this using a debugger?

Xander
  • 9,069
  • 14
  • 70
  • 129
  • Possible duplicate of [How do I debug a stand-alone VBScript script?](http://stackoverflow.com/questions/2288043/how-do-i-debug-a-stand-alone-vbscript-script) – KyleMit Sep 14 '16 at 16:14

3 Answers3

12

If you're referring to "classic" VBScript, i.e. .vbs files, Microsoft has a tool available called Microsoft Script Debugger that functions more or less like a Visual Studio debugging session. It's probably your most lightweight option short of adding debug statements to the code.

Charles Clayton
  • 17,005
  • 11
  • 87
  • 120
Ryan Brunner
  • 14,723
  • 1
  • 36
  • 52
  • 1
    This is pretty win for anyone debugging classic asp as well – Terrance Mar 30 '11 at 12:59
  • @RaulLuna: Doesn't work for me in XP either. Can open the `.vbs` file with the program, but the button to run is not activated. The open dialog doesn't even have the option to filter for `.vbs` files. – newenglander Jan 09 '15 at 14:26
  • 2
    The debugger link doesn't work anymore. "*We're sorry, this download is no longer available.*" – Stevoisiak Oct 13 '17 at 13:34
5

VBSEdit is great.

The free version does have an annoying timer but it's $59. It does use Microsoft Script Debugger.

Ryan Wersal
  • 3,210
  • 1
  • 20
  • 29
YeshaiB
  • 135
  • 1
  • 2
  • 8
0

You can use either Microsoft's default debugger or vbsedit. Vbsedit is a good IDE for VBS, HTA and HTML. And it includes a debugger.

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 06 '22 at 05:13