I\'d like to debug a vbscript with Visual Studio 2017 Community Edition and followed the steps mentioned here for VS2015:
Video
I entered
cs
CSCript.exe requires double-forward-slashes for its own command-line options, because single-slashed arguments are passed to the script itself.
You want cscript.exe //X
not cscript /X
.
I also suggest the //D
argument so it breaks immediately.
Please run your VS2017 as the admin, and then enable the script option under TOOLS->Options->Debugging->Just-In-Time, and then re-debug it again.
Even if I didn't use the VS2017 community version, but I get the same issue, I found that it was related to the JIT debugging in my side using VS2017 Enterprise version and it works well after I enable it:
Neither of those solutions worked for me. Found a workaround on MSDN