Re: How does one debug HTA code?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Gerry Hickman (gerry666uk_at_yahoo.co.uk)
Date: 02/11/05


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)


Relevant Pages

  • Re: How does one debug HTA code?
    ... Make sure you're script debugger is not disabled in Internet Explorer's ... Mark-Allen Perry wrote: ... > Marly, Switzerland ... > and other newsgroups first. ...
    (microsoft.public.scripting.wsh)
  • Re: How does one debug HTA code?
    ... Make sure you're script debugger is not disabled in Internet Explorer's ... Mark-Allen Perry wrote: ... > Marly, Switzerland ... > and other newsgroups first. ...
    (microsoft.public.scripting.vbscript)
  • Re: help on listing specific services
    ... And the answer could have already been posted, so try searching this and other newsgroups first. ... I tested the script and it works. ... A if the number are a lot, then place them into an array and compare against the array. ... Set colListOfServices = objWMIService.ExecQuery _ ...
    (microsoft.public.windows.server.scripting)
  • Re: Networking basics
    ... And the answer could have already been posted, so try searching this and other newsgroups first. ... Dave Patrick ....Please no email replies - reply in newsgroup. ... "Mark-Allen Perry" wrote: ...
    (microsoft.public.windows.server.general)
  • Re: Where is my most-recently-used (MRU) search functionality?
    ... Dave Patrick ....Please no email replies - reply in newsgroup. ... "Mark-Allen Perry" wrote: ... other newsgroups first. ...
    (microsoft.public.windows.server.general)