What program can look at a script and indicate where a problem is?

I would like to use a program that would examing a vbs, powershell or batch script and try to indicate where an error might be in the code.
Especially useful where echo is off and one needs to see where there is a problem in a script.
Is there such a Windows program or editor which can breakdown the script and tell you where there might be problems?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Will SzymkowskiSenior Solution ArchitectCommented:
Something like Powershell ISE (Integrated Scripting Environment) can detect and will show you when you have improper syntax and outlines issues underlining in red. This is built-in to all windows machines. You also need to be running at least powershell v2.0 for ISE to be available.

Bill PrewIT / Software Engineering ConsultantCommented:
None of these replace the human programmer, but a few useful tools to look at:

BAT - there aren't a lot of options here, a good programming editor with syntax highlighting and intellisense helps a lot (I like SlickEdit, but there are several other good ones, it's a personal choice), but not too many debuggers for BAT scripts.



General Tools List

NVITEnd-user supportCommented:
For VBS:
- The dated (depending on your OS) Microsoft Script Debugger http://www.microsoft.com/en-ca/download/details.aspx?id=22185

- I use VBSEdit, which has a debugger. VBSEdit is similar to MS's VB IDE. Free version available. I don't remember the limitations, though.

For .BAT and .CMD files:
- The Take Command has an IDE w/ a debugger. https://jpsoft.com/help/ide__batch_debugger.htm AFAIK, Take Command is $80. Not sure if this worth it just for the debugger.

FYI, here's info on debugging techniques

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
100questionsAuthor Commented:
Have not tried any yet but looks comprehensive, thanks.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.