如何调试JQuery代码? [英] How to debug JQuery code?

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

问题描述

Hii,



我正在使用jquery做一些事情,但我的观点是如果我想检查值,我该如何调试代码。我的jquery函数写在单独的文件中..我试图将debugger关键字放在document.ready函数..然后在chrome浏览器中我按ctrl + shif + i来检查值。它不允许我调试..如果我在aspx文件中编写我的直接jquery脚本它允许我调试..请建议

Hii ,

I am doing some stuffs using jquery , but only my point is how can i debug the code if i want to check the values. My jquery functions are writeen in seperate file .. i tried to put debugger keyword inside document.ready function .. and then in chrome browser i press ctrl+shif+i to check the values . it doesnt allowing me to debug .. howerver if i write my direct jquery script in aspx file it allows me to debug .. please suggests

推荐答案

检查这些

调试工具 - jQuery [ ^ ]

如何调试jQuery代码 [ ^ ]
Check these
Debugging Tools - jQuery[^]
How to Debug Your jQuery Code[^]


首先在jquery代码中添加调试器语句并在chrome浏览器中检查jquery变量值,然后按F11键。
first you add the debugger statement in your jquery code and check the jquery variable value in chrome browser and press F11 key.


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

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