Closed mtaylorfsmb closed 3 years ago
Please use the config variable vbs.interpreter and set the path to c:\Windows\SysWOW64\cscript.exe
Please be more specific or point me to the documentation for this. This option is not valid in launch.json
so how would I set this up so I can open a folder in VS code and debug VBS scripts there using x86 version?
Hi please read the VSCode Beginner Documentation how Settings work: https://code.visualstudio.com/docs/getstarted/settings Search there for the setting name and config it to your prefered vbs interpreter. VSCode has settings, which can be configured per Machine, User, Workspace, Language, etc. Most extensions contributes settings, you can see them, when you click on an extension and on the extension tab "contributions".
Thanks for the info. I'll go this route to get past my issue.
Still I believe that most VBS code assumes x86 and therefore would benefit from either defaulting to that or making it configurable via the debug launch settings so we can run either way without changing the workplace settings.
Couldn't agree. I'm using the default setting Windows is using when you double click an vbs file which is x64. When you double click your vbs file with the bitness problem you should get same error
Describe the bug Attempting to test a vbscript file that uses an x86 COM component fails because VS Code tries to use the x64 version instead. Therefore it is unable to locate the COM component.
Code
To Reproduce Steps to reproduce the behavior:
Expected behavior Should be able to configure the CScript version to use via the launch.json. Ideally let me select the version of CScript and pass arguments to it in case I need to do more than what the existing launch.json settings allow.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):