如何使用调试器启动IE8调试器;命令 [英] How to launch IE8 debugger with debugger; command
问题描述
javascript命令'debugger;'将启动调试器。
The javascript command 'debugger;' will start a debugger.
debugger;
但是(安装了Visual Studio 2008)我似乎无法弄清楚如何让它进入IE8调试器。它将给我一个选择列表,如VS2008,VS2010,Microsoft Script调试器。
But (with Visual Studio 2008 installed) I cannot seem to figure out how to get this to break into the IE8 debugger. It will give me a list of choices such as VS2008, VS2010, Microsoft Script debugger.
如果我执行以下操作,将会进入(闪电般快速)的VS2008调试器。
If I do the following it will break into the (lightning fast) VS2008 debugger...
throw Error("d");
...但是当我使用'debugger''命令时,我想要这样做。如何做到这一点
... but I want to get it to do so when I use the 'debugger;' command. How can I do this
推荐答案
步骤1:打开要调试的页面
第2步:打开IE8调试器,然后单击脚本 - >开始调试_
步骤3:然后执行代码时将进入IE8调试。
Step 1: Open the page you want to debugger
Step 2: Open IE8 Debugger and click Script -> Start Debugging
Step 3: Then It will break into the IE8 debugging while execute the code.
希望它有帮助!
这篇关于如何使用调试器启动IE8调试器;命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!