如何调试javascript [英] how to debug javascript
本文介绍了如何调试javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我在字符串变量中写了一个javascript。并将此字符串变量分配给按钮
button1.Attributes.add(stringVariable);
现在如何在运行时调试我的字符串varibale(javascript)
谢谢
chiranjeevi
解决方案
仅供参考,javascript没有编译所以你无法调试它。
但是你可以使用工具来获取价值在某一点上,例如 Firebug [ ^ ]并调试它(如你所愿)。
如果你使用VS2010你可以调试它。
或者其他firebug
你不能在Visual Studio中调试javascript。但你可以在Mozilla中使用FireBug在浏览器中调试你的javascript
或查看此主题
http: //msdn.microsoft.com/en-us/ie/dd699458.aspx [ ^ ]
Hi
I written a javascript in a string variable. and this string variable is assigned to a button as
button1.Attributes.add(stringVariable);
now how to debug my string varibale(javascript) in runtime
thanks
chiranjeevi
解决方案
FYI, javascript doesn''t compile so you can''t debug it.
However you can use a tool to get value at a certain point like Firebug[^] and also debug it(as you wished).
if ur using VS2010 u can debug it.
or else firebug
you can''t debug javascript in Visual Studio..but you can debug your javascript in browser using FireBug in mozilla
or check this thread
http://msdn.microsoft.com/en-us/ie/dd699458.aspx[^]
这篇关于如何调试javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文