调试Javascript在ASP.NET [英] Debug JavaScript in ASP.NET

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

问题描述

我需要调试我写的asp.net JavaScript函数。

I needed to debug my javascript functions written in asp.net.

我目前正在使用Chrome,但它不会破发点。如果我把警报('一些消息')。我可以看到显示的信息。

I am currently using chrome but its not going to the break point. If i put alert('Some message'). I can see message displayed.

如果有人有任何想法如何使用调试器对JavaScript的ASP.NET,请让我知道。

If someone has any idea how to use debugger for JavaScript in ASP.NET please let me know.

推荐答案

要调试铬你需要做两件事情。

To Debug in chrome you need to do two things


  1. 写入调试器要开始调试的地方。

  2. 执行脚本开放的开发工具(由pressing CTRL + SHIFT + I)之前

现在,当执行到你写调试器执行暂停为您调​​试,语句的控制

Now when control of execution to statement where you wrote debugger the execution is paused for you to debug.

下面是您学习,请在注释中给出的指令的例子。 如何在Chrome浏览器调试

Here is an example for you to learn, Follow the instruction given in comments. How to debug in chrome

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

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