如何调试IE9 HTA?
有人在安装 IE9 后将调试器附加到 mshta.exe 吗? (64 位或 WOW64)
Has anyone gotten a debugger attached to mshta.exe after installing IE9? (64bit or WOW64)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您有 Visual Studio,请转至
Tools ->附加到进程
并附加到MSHTA.EXE
进程。然后选择Script
作为调试目标。If you have Visual Studio, go to
Tools -> Attach to Process
and attach to theMSHTA.EXE
process. Then pickScript
as the target to debug.我使用的是 Vista x64,因此我必须应对 32 位/64 位障碍。
HTA
(mshta32)
(mshta64)
启动
调试器
通常我会使用
debugger
关键字来启动调试器,但是对于 IE9,它似乎并不不再这样做了。我必须首先启动调试器,手动附加到 mshta.exe 进程(仅支持 32 位)。然后一切似乎都工作正常!编辑:
与同事一起,不同的机器表现出不同的行为:
debugger
关键字工作正常MSHTA.EXE
不起作用< b>我还没有找到灵丹妙药。
I'm on a Vista x64, so I have to contend with the 32bit/64bit barrier.
HTA
(mshta32)
(mshta64)
Launching
Debugger
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!EDIT:
With coworkers, different machine have exhibited different behaviors:
debugger
keyword works fineMSHTA.EXE
from the debugger doesn't workI haven't yet found a silver bullet.
尝试使用“停止”语句。这应该会引发调试器对话框
Try using 'Stop' statement. This should raise the debugger dialog
我也有同样的问题。最后拼凑出如何使用 Visual Studio 从两个来源进行调试
I had the same problem. Finally pieced together how to debug using Visual Studio from two sources