简体   繁体   English

在我的asp.net网站上调试Javascript

[英]Debugging the Javascript in my asp.net website

My webpage contains : I did a break points on the Tools.JS , but while debugging I didn't found my JS in Script Documents (Run Time mode) , and i remarked the exclamation message on my BP saying that this break point willn't be take in mind cause the JS document isn't charged. 我的网页包含:我在Tools.JS上做了一个断点,但是在调试时,我没有在脚本文档(运行时模式)中找到我的JS,并且我在BP上标注了惊叹号,说这个断点不会请注意,因为JS文档不收费。

My question is : Is there another way to load a JS to be available in the debugging mode? 我的问题是:是否有另一种方法可以加载JS以在调试模式下使用? and how could i debug my JS in this case ? 在这种情况下,如何调试我的JS?

Thanks in advance Abdelrahman, 在此先感谢Abdelrahman,

have you tried firebug ? 你试过萤火虫吗? debugging js with firebug is easier than with visual studio 使用Firebug调试js比使用Visual Studio容易

just writ keyword 只是写关键字

debugger; 调试器;

in your function for example 以您的职能为例

function avc()
{
 debugger;
 ..
 ..
}

for more detail : http://www.codestore.net/store.nsf/unid/DOMT-5UBUVW 有关更多详细信息: http : //www.codestore.net/store.nsf/unid/DOMT-5UBUVW

I'd use Firebug. 我会用Firebug。 It's an addon to Fireforx 这是Fireforx的插件

firebug 萤火虫

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM