How to use Visual Studio to debug a VBS script ( error: Unable to attach to the crashing process. The process has been terminated.)
Posted on 2008-10-03
I'm trying to debug a VBS in Visual Studio 2005 and I've done this before. For some reason my current attempts keep failing and I don't get it.
Ideally I will debug this script locally as I launch it from a remote machine for which I have access. Example:
cscript \\ServerXyz\Projectn\MyVbsScript.vbs //x
This script has no parameters and it doesn't matter whether I run it locally or not - I get the same thing. Also, I know there is nothing wrong with the script because it runs every day on various machines to do the job it does. I want to debug it to understand what it does.
Please advise as to how I can debug this script. I'm thinking I should be able to browse to the script, attach it and debug it!!