How to debug IE9 HTA?

Has anyone got a debugger attached to mshta.exe after installing IE9? (64 bit or WOW64)

+3
source share
4 answers

I am on Vista x64, so I have to deal with the 32-bit / 64-bit barrier.

OMT

  • C: \ Windows \ system32 \ mshta.exe (Mshta32)
  • C: \ Windows \ syswow64 \ mshta.exe (Mshta64)

Launch

  • "mshta32 foo.hta" may use mshta32 or mshta64 depending on what is associated with the HTA
  • The same thing happens if "mshta64 foo.hta" is used.
  • "cmd / C start foo.hta" will have the same effect.

Debugger

  • MS Script Editor (from Office XP / 2003) for debugging JS in IE / HTA

debugger, , IE9 . , mshta.exe ( 32 ). !

EDIT:

:

  • debugger
  • MSHTA.EXE

.

+2

Visual Studio, Tools -> Attach to Process MSHTA.EXE. Script .

+1

"".

0

I had the same problem. Finally brought together how to debug using Visual Studio from two sources

  • Enable debugging script via Internet Explorer as described here and here
  • Launch Visual Studio. Click Debug → Attach to Process
  • Run the .hta file and select the running process from the Attach to Process dialog box
0
source

All Articles