无法达到debugger- Visual Studio 2008的书面Javascript的inspite一个破发点 [英] Unable to reach a break point in Javascript inspite of writing debugger- Visual studio 2008

查看:104
本文介绍了无法达到debugger- Visual Studio 2008的书面Javascript的inspite一个破发点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SO关于如何放置破发点中的Java脚本函数在调试模式下读取几个职位。一个简单的解决办法是写调试,我需要有一个破发点。但不幸的是,这并不为我工作。
我给了 - <编译调试=真正的> 在web.config中,写在JavaScript调试器无论我需要有一个破发点。但是没有用。

I have read several posts on SO regarding how to place break points in java script functions in debug mode. An easy solution was writing debugger where I need to have a break point. But unfortunately that doesn't work for me. I gave - <compilation debug="true"> in web.config and wrote debugger in javascript whereever I need to have a break point. But no use.

一个截屏为我做了什么:

A screen shot for what exactly i did:

我呼吁按钮单击此drouote(),它并执行,但破发点是打不到。我在哪里错了?
在这里也将达到一个破发点,在Chrome控制台或在Visual Studio中显示此code?

I call this drouote() on button click and it does execute, but the break point isn't hit. Where am I wrong? Also where will this code be shown on reaching a break point, in chrome console or in visual studio?

推荐答案

您在2浏览器2选项

如果您需要在Visual Studio调试你有IE浏览器的工作,还必须在运行VS preSS和你的破发点放在

if you need to debug in Visual Studio you have to work with IE ,also you have to press Run in VS and have your break point placed.

我认为这是一个艰辛的道路。

I see this as a hard way

最简单的方法是在Firefox下载Firefox浏览器,然后添加从火狐浏览器安装网站萤火插件运行与F12的萤火虫,并启用康寿和脚本锅
然后打开你的网页和调试JavaScript,但要注意在这里,你有,直到你学会关于萤火虫,那么你就会知道如何把一个断点在Firebug,而不是把调试关键字放置关键字调试器在这种情况下

the easy way is on FireFox download firefox browser and then add the FireBug addon from firefox addons website run the firebug with F12 and enable the Consol and Script Pans then open your page and debug your javascript but be note here that you have to place the debugger keyword in that case till you learn much about firebug you then will know how to place a breakpoint in firebug instead of placing debugger keyword

问候,如果您需要更多帮助,请联系我。

Regards if you need and more help contact me

这篇关于无法达到debugger- Visual Studio 2008的书面Javascript的inspite一个破发点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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