![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Very wierd script behavior when loading xml documents with debugging enabled [Thread Next] Re: Very wierd script behavior when loading xml documents with debugging enabledTo: NULL Date: 7/1/2006 9:46:00 AM
"Joe Nastasi" <j_nastasi2_NO_SPAM@h...> wrote in message
news:eaA7cDJnGHA.4104@T......
> Thanks a lot Joe!!!
>
> The current directory was the issue.
>
> I had a script to launch the debugger which had the lines:
>
> var objArgs = WScript.Arguments;
--
Joe Fawcett - XML MVP
http://joe.fawcett.name
>
> var WshShell = new ActiveXObject("WScript.Shell");
>
> WshShell.Run("wscript.exe /X /D " + objArgs(0));
>
> And even though this script was also in the same directory it caused the
> current directory to switch to my default cmd.exe directory.
>
> The page at the url below says /D is the option to "turn on the debugger"
> and /X is the option to "launch the program in a debugger"... I thought I
> needed both, but I guess I don't.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/3d348b43-f98a-43dd-986b-93adff7945fe.asp
>
> Thanks again for your help.
>
>
Glad to be of help.
I also advise you to try what Michael Harris has to say in this thread about
setting up the script editor to debug:
http://groups.google.co.uk/group/microsoft.public.scripting.wsh/browse_thread/thread/2cf558619864502c/1d1ac8366c81ad14?lnk=st&q=script+editor+debugger+group%3Amicrosoft.public.*&rnum=5&hl=en#1d1ac8366c81ad14
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
