Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 05-20-2016, 04:00 PM
ShawnVW ShawnVW is offline
Registered User
Join Date: May 2016
Posts: 15
Using Debuggers for VBScript

I need to be able to debug my VBscript by stepping through it, so I've been investigating debugging tools. VanDyke's Todd posted this on a different thread:

Originally Posted by rtb View Post

Since SecureCRT doesn't expose an object, I am not sure that there will ever be a really good external debugging solution.

We have used Visual Studio to successfully debug VBScripts in SecureCRT. You have to have Visual Studio installed, and make sure that JITDebug is set to "1" in the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows Script\Settings
I installed Visual Studio, but the idea of attempting a registry change to my boss's computer fills me with apprehension.

So first I started Visual Studio and opened my script, to see if there were any issues that would make me look for a different solution. Sure enough, the "Start Debugging" command is greyed out.

Is that because I didn't make the registry change? Or could there be some other silly reason?

Meanwhile, I found another debugger called VBSEdit (http://www.vbsedit.com/) which seems simple enough. However, running their "debug" only seems to check my script for errors with, without any effect on my SecureCRT window. I know I'm missing something, and I'm not even sure that stepping through the code is even possible this way.

Is anyone familiar with these products?
Reply With Quote

debugging , vbscript , vbsedit , visual studio

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 08:27 PM.