I am currently working with a .js file that is executed using cscript.exe
and not in a browser environment.
I am aware that I can use the //X
parameter with cscript.exe
to trigger a debugger selection prompt. This works well when choosing "Visual Studio 2005 Debugger" and editing the script.
However, I am facing an issue when trying to debug the script again after making changes. Despite hitting F5, Visual Studio informs me that it cannot find debugging symbols in cscript.exe
.
Is there a simple way to debug the script in Visual Studio without having to repeatedly start cscript.exe
from the command line?
Edit:
After looking at the answer provided by t0nyh0, I tried creating a dummy console application to initiate the debugger. While this works, there are a few caveats:
cscript.exe
always prompts for the debugger instance to use. Is there a way to specify a specific debugger directly in the command line?In order to trigger a post-build event, I need to make modifications to my sources. Is there a method to run the post-build script even if no changes have been made?