javasript调试 [英] javasript debugging

查看:46
本文介绍了javasript调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与Visual Studio一起使用Asp.net(vb.net)开发Web应用程序.有时我必须在页面中编写一些小的javascript函数.为了检查这些脚本的正确性,我通常在其中编写临时警报信息我的javascript函数的不同部分.是否有更好的方法来调试这些脚本?

I am working on developing a web application using Asp.net(vb.net) with Visual studio.Sometimes I have to write small javascript functions in my page.For checking the correctness of those script I generally write temporary alert messege in different portions of my javascript function.Is there any better way to debug those scripts??

推荐答案

是的,请使用IE开发人员工具"进行调试以及在使用FireFox时下载并激活FireBug插件,该插件也非常适合调试,DOM模型检查和CSS规则检查.
当然,在测试Web应用程序时,您也可以使用VS调试器调试JS代码.

问候,
Manfred
Yes, use IE "Developer Tool" to debug and when working with FireFox download and activate FireBug plugin which is also great for debugging, DOM model inspection and CSS rule inspection.
Of course you can also debug JS code with VS debugger when testing your web application.

Regards,
Manfred


不需要每次都写警报.

只需将debugger;放在要开始调试的行之前.

并启用了在IE中设置调试功能.
No need to write alert everytime.

Just put debugger; before the line you want to start debug.

And Set debugging in IE enabled.


这篇关于javasript调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆