{"id":690,"date":"2014-10-27T10:26:56","date_gmt":"2014-10-27T14:26:56","guid":{"rendered":"http:\/\/rajdude.com\/blog\/?p=690"},"modified":"2014-10-27T10:26:56","modified_gmt":"2014-10-27T14:26:56","slug":"easy-free-vbscript-debugging","status":"publish","type":"post","link":"https:\/\/rajdude.com\/blog\/easy-free-vbscript-debugging\/","title":{"rendered":"Easy, free VBScript debugging"},"content":{"rendered":"<p>As sys-admins we have to write scripts. Although the new thing is PowerShell, we still have a lot of old legacy scripts in VBScript.<\/p>\n<p>I was searching for an easy way to debug a VBScript, the way software developers do it using an IDE\u2026 but I do not want to install the whole Visual Studio package. Sure there are non Microsoft tools to do it, but I could not find a good, free one. <\/p>\n<p>After a lot of trials and tribulations, I found the easy way to debug a VBScript:<\/p>\n<ol>\n<li>Install MS debugger. (download it from <a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=22185\">here<\/a>). Yes it is super old, but still works, I tested it on Windows 8.1<\/li>\n<li>On a command prompt, start debugging by invoking debugging like this:<\/li>\n<\/ol>\n<blockquote>\n<p>c:\\windows\\syswow64\\cscript.exe (script_path_and_name) \/\/X<\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>Note that a simple \u201ccscript.exe (script_path_and_name) \/\/X\u201d does not work (for me at least). I need to invoke the 64bit cscript.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As sys-admins we have to write scripts. Although the new thing is PowerShell, we still have a lot of old legacy scripts in VBScript. I was searching for an easy way to debug a VBScript, the way software developers do it using an IDE\u2026 but I do not want to install the whole Visual Studio package. Sure there are non Microsoft tools to do it, but I could not find a good, free one. After a lot of trials and tribulations, I found the easy way to debug a VBScript: Install MS debugger. (download it from here). Yes it is super old, but still works, I tested it on Windows 8.1 On a command prompt, start debugging by invoking debugging like this: c:\\windows\\syswow64\\cscript.exe (script_path_and_name) \/\/X &nbsp; Note that a simple \u201ccscript.exe (script_path_and_name) \/\/X\u201d does not work (for me at least). I need to invoke the 64bit cscript.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[67],"class_list":["post-690","post","type-post","status-publish","format-standard","hentry","category-itsys","tag-scripting"],"_links":{"self":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/comments?post=690"}],"version-history":[{"count":1,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":691,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/posts\/690\/revisions\/691"}],"wp:attachment":[{"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/media?parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/categories?post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rajdude.com\/blog\/wp-json\/wp\/v2\/tags?post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}