如何调试IE9 HTA? [英] How to debug IE9 HTA?
问题描述
安装IE9后,有没有人收到一个附加到mshta.exe的调试器? (64bit或WOW64)
Has anyone gotten a debugger attached to mshta.exe after installing IE9? (64bit or WOW64)
推荐答案
我在Vista x64上,所以我必须与32bit / 64bit的屏障竞争。
I'm on a Vista x64, so I have to contend with the 32bit/64bit barrier.
HTA
- c:\windows\system32\mshta。 exe
(mshta32) - c:\windows\syswow64\mshta.exe
(mshta64)
启动
- mshta32 foo.hta可能使用mshta32或mshta64,具体取决于与HTA相关
- 同样的情况,如果使用mshta64 foo.hta
- cmd / C start foo.hta将具有相同的影响。
调试器
- MS脚本编辑器(来自Office XP / 2003)用于IE / HTA中的JS调试
通常我会使用调试器
关键字启动调试器,但是对于IE9来说,似乎没有这样做。我必须首先启动调试器,手动附加到mshta.exe进程(仅支持32位)。那么一切似乎都可以正常运行!
Normally I would use the debugger
keyword to initiate the launching of the debugger, however with IE9, it doesn't seem to do that anymore. I must launch the debugger first, attach to the mshta.exe process manually (only supports 32bit). Then everything appears to work fine!
编辑:
与同事不同机器有不同的行为:
With coworkers, different machine have exhibited different behaviors:
-
调试器
关键字工作正常 - 从调试器连接到
MSHTA.EXE
不起作用
debugger
keyword works fine- Connecting to
MSHTA.EXE
from the debugger doesn't work
我还没有找到一个银弹。
这篇关于如何调试IE9 HTA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!