Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Very wierd script behavior when loading xml documents with debugging enabled

From: "Joe Fawcett" <joefawcett@---------.------>
To: 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





transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent