i know i can debug an asp.net page in visual studio 2008, because visual studio knows asp.net pages. but i'm developing coldfusion based application now, and i'm curious whether i can use visual studio to debug the js code in coldfusion pages. thank you in advance.
我知道我可以调试visual studio 2008中的asp.net页面,因为visual studio知道asp.net页面。但我现在正在开发基于coldfusion的应用程序,我很好奇我是否可以使用visual studio来调试coldfusion页面中的js代码。先感谢您。
3 个解决方案
#1
Visual Studio isn't aware of CFML Syntax, so it can't debug a CFML page. I don't think you can debug (in the sense of line-debugging, "stepping through") JavaScript code in Visual Studio anyway -- not even inside an ASPX page -- but I'm not sure.
Visual Studio不了解CFML语法,因此无法调试CFML页面。我不认为你可以调试(在线调试的意义上,“逐步”)Visual Studio中的JavaScript代码 - 甚至不在ASPX页面内 - 但我不确定。
What you should use to step-debug JavaScript is Firefox and FireBug. Once you've got the tools, all you need to know is how to use FireBug to debug your JavaScript, which is explained pretty well right on the FireBug website.
你应该用来逐步调试JavaScript的是Firefox和FireBug。获得这些工具之后,您需要知道的是如何使用FireBug来调试JavaScript,这在FireBug网站上得到了很好的解释。
#2
You need to write a debugger inside your javascript code. And also make sure that your IE Options "disable script debugging is unchecked"
您需要在javascript代码中编写调试器。并确保您的IE选项“禁用脚本调试未选中”
Here is the referencein how to debug javascript using IE
这里是如何使用IE调试javascript的参考
Here are the references :
以下是参考资料:
http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html
http://weblogs.asp.net/scottgu/archive/2007/07/19/vs-2008-javascript-debugging.aspx
http://www.asp.net/learn/videos/video-219.aspx
Hope this helps,
希望这可以帮助,
hadi
#3
I would add 1 to what Adam said. To debug Javascript in IE, you can download Visual Web Developer 2008. Create a default website, (file>new web site) and then start the debug (the green play button on the menu). This will launch an IE window pointing to localhost. (http://localhost:3928/WebSite1/Default.aspx) If you change the url to whatever, you will start debugging in IE as well. I have firebug for FF. Web developer add on is also useful. The thing is you will need to debug in IE too since IE craps on places where FF does not. hope it helps...
我想加上亚当所说的1。要在IE中调试Javascript,您可以下载Visual Web Developer 2008.创建一个默认网站(文件>新网站),然后启动调试(菜单上的绿色播放按钮)。这将启动指向localhost的IE窗口。 (http:// localhost:3928 / WebSite1 / Default.aspx)如果您将网址更改为任何内容,您也将在IE中开始调试。我有FF的萤火虫。 Web开发人员添加也很有用。问题是你需要在IE中进行调试,因为IE在FF没有的地方劈啪作响。希望能帮助到你...
Also, in your solutions explorer window, right click on default.aspx and pick "browse with..." then set IE as default browser.
此外,在您的解决方案资源管理器窗口中,右键单击default.aspx并选择“浏览...”,然后将IE设置为默认浏览器。
#1
Visual Studio isn't aware of CFML Syntax, so it can't debug a CFML page. I don't think you can debug (in the sense of line-debugging, "stepping through") JavaScript code in Visual Studio anyway -- not even inside an ASPX page -- but I'm not sure.
Visual Studio不了解CFML语法,因此无法调试CFML页面。我不认为你可以调试(在线调试的意义上,“逐步”)Visual Studio中的JavaScript代码 - 甚至不在ASPX页面内 - 但我不确定。
What you should use to step-debug JavaScript is Firefox and FireBug. Once you've got the tools, all you need to know is how to use FireBug to debug your JavaScript, which is explained pretty well right on the FireBug website.
你应该用来逐步调试JavaScript的是Firefox和FireBug。获得这些工具之后,您需要知道的是如何使用FireBug来调试JavaScript,这在FireBug网站上得到了很好的解释。
#2
You need to write a debugger inside your javascript code. And also make sure that your IE Options "disable script debugging is unchecked"
您需要在javascript代码中编写调试器。并确保您的IE选项“禁用脚本调试未选中”
Here is the referencein how to debug javascript using IE
这里是如何使用IE调试javascript的参考
Here are the references :
以下是参考资料:
http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html
http://weblogs.asp.net/scottgu/archive/2007/07/19/vs-2008-javascript-debugging.aspx
http://www.asp.net/learn/videos/video-219.aspx
Hope this helps,
希望这可以帮助,
hadi
#3
I would add 1 to what Adam said. To debug Javascript in IE, you can download Visual Web Developer 2008. Create a default website, (file>new web site) and then start the debug (the green play button on the menu). This will launch an IE window pointing to localhost. (http://localhost:3928/WebSite1/Default.aspx) If you change the url to whatever, you will start debugging in IE as well. I have firebug for FF. Web developer add on is also useful. The thing is you will need to debug in IE too since IE craps on places where FF does not. hope it helps...
我想加上亚当所说的1。要在IE中调试Javascript,您可以下载Visual Web Developer 2008.创建一个默认网站(文件>新网站),然后启动调试(菜单上的绿色播放按钮)。这将启动指向localhost的IE窗口。 (http:// localhost:3928 / WebSite1 / Default.aspx)如果您将网址更改为任何内容,您也将在IE中开始调试。我有FF的萤火虫。 Web开发人员添加也很有用。问题是你需要在IE中进行调试,因为IE在FF没有的地方劈啪作响。希望能帮助到你...
Also, in your solutions explorer window, right click on default.aspx and pick "browse with..." then set IE as default browser.
此外,在您的解决方案资源管理器窗口中,右键单击default.aspx并选择“浏览...”,然后将IE设置为默认浏览器。