Re: How does one debug HTA code?
From: Gerry Hickman (gerry666uk_at_yahoo.co.uk)
Date: 02/11/05
- Next message: Javier J: "Re: Windows Update Agent not installed on Windows 2003 [Error on CreateObject("Microsoft.Update.Session")]"
- Previous message: Mike Pietsch: "RE: Connecting to remote servers with scripting object"
- In reply to: Mark-Allen Perry: "Re: How does one debug HTA code?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 11 Feb 2005 19:49:54 +0000
Hi,
You may want to check you've got a debugger configured for a start. An
easy way to test it is to deliberately cause an error in the HTA, you
should see a dialog asking if you would like to debug.
Make sure you're script debugger is not disabled in Internet Explorer's
Advanced screen.
Here's a test script that will crash the HTA and ask if you want to
debug. If it does not ask you, there's something wrong with your setup.
<html>
<head>
<script language="vbscript">
Sub init()
crash my scripr please
End sub
</script>
</head>
<body onload="init()">
<pre id="idLog"></pre>
</body>
</html>
Mark-Allen Perry wrote:
> Michael,
>
> I cannot seem to make it break. Could you post some example code that
> demonstrates the Stop function?
>
> many thanks,
>
> --
>
> Always try the MS KB first before posting.
> MS KB: http://support.microsoft.com/default.aspx?scid=fh;EN-US;KBHOWTO
> And the answer could have already been posted, so try searching this and
> other newsgroups first.
> ----
> Mark-Allen Perry
> ALPHA Systems
> Marly, Switzerland
> mark-allen_AT_mvps_DOT_org
>
> "Mark-Allen Perry" <mark-allen@mvps_dot_org
> <mailto:mark-allen@mvps_dot_org>> wrote in message
> news:umYufJ4DFHA.3944@tk2msftngp13.phx.gbl...
> Cool. Understood about docs. I'll give it a try and post results.
>
> many thanks,
>
> --
>
> Always try the MS KB first before posting.
> MS KB: http://support.microsoft.com/default.aspx?scid=fh;EN-US;KBHOWTO
> And the answer could have already been posted, so try searching this
> and other newsgroups first.
> ----
> Mark-Allen Perry
> ALPHA Systems
> Marly, Switzerland
> mark-allen_AT_mvps_DOT_org
>
> "Michael Harris (MVP)" <mikhar@mvps.org
> <mailto:mikhar@mvps.org>> wrote in message
> news:uOcMI9sDFHA.3452@TK2MSFTNGP09.phx.gbl...
> Mark-Allen Perry wrote:
> > Thanks for the reply, Michael.
> >
> > However, I see no STOP command in any of the help files.
> There is
> > only a QUIT, which would certainly stop execution but is most
> likely
> > not what I'm looking for.
> >
>
>
> The VBScript documentation incorrectly lists list the Stop
> statement as
> being unsupported. This is a doc bug since Stop does work in
> VBScript.
>
>
> > And I'm checking on the running process from the debugger.
> Will post
> > my results.
> >
> > many thanks,
>
> --
> Michael Harris
> Microsoft.MVP.Scripting
-- Gerry Hickman (London UK)
- Next message: Javier J: "Re: Windows Update Agent not installed on Windows 2003 [Error on CreateObject("Microsoft.Update.Session")]"
- Previous message: Mike Pietsch: "RE: Connecting to remote servers with scripting object"
- In reply to: Mark-Allen Perry: "Re: How does one debug HTA code?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|