用VS2005调试JS

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>
(1)IE - Tools - Options - Advanced 清除两个选项:
- Disable Script Debugging (Internet Explorer)
- Disable Script Debugging (Other)
(2)VS2005 IDE - F5 to run the ASP.NET program.或者用IE浏览个画面,然后用Ctrl+Alt+P Attach IEXPLORER.exe这个Process.
(3)VS2005 IDE - Ctrl-Alt-N to show the the Script Explorer 得到Render后的Html Source.
(4)IE - View - Script Debugger - Open
(5)IE - View - Script Debugger - Break at Next Statement
此后,操作Web Page,有脚本执行时,VS2005 IDE中就会显示脚本,可以单步执行、查看变量值等。

你可能感兴趣的:(IE,脚本,asp.net,ide,asp)