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?

zachary
  • 8,825
  • 13
  • 66
  • 123
  • 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

2 Answers2

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
  • 15,368
  • 11
  • 84
  • 116
Ryan Brunner
  • 14,473
  • 1
  • 35
  • 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,220
  • 1
  • 19
  • 29
YeshaiB
  • 135
  • 1
  • 2
  • 7