Visual Studio 2012在经典ASP调试中禁用了应用程序调试功能 [英] Application Debugging is disabled in Visual Studio 2012 on Classic ASP Debugging

查看:234
本文介绍了Visual Studio 2012在经典ASP调试中禁用了应用程序调试功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想调试经典ASP 网站 Visual Studio 2012 IIS快递。因此,我在 VS 2012 中附加了 iisexpress.exe ,但显示应用程序调试是禁用。什么可能是一个问题?我是否要启用任何配置设置?

I'd like to debug Classic ASP website at Visual Studio 2012 with IIS Express. Hence, I attached the iisexpress.exe in VS 2012, but it shows Application Debugging is disabled. What could be a problem ? Do I want to enable any configuration settings?

推荐答案

我没有视觉工作室2012来测试,据我所知,视觉工作室无法调试asp经典代码。
我调试我的asp经典代码的方式是在我要调试的一行之上放置停止语句
喜欢这篇文章说。断点只是输入停止。

I don't have visual studio 2012 to test it on as far as I know visual studio cannot debug asp classic code natively. The way I debug my asp classic code is to put in stop statements on the line above the one I want to debug like this post says. the break point is just typing in stop.

function DoDate(inp)
   stop
if isnull(inp) then
    DoDate = "Never"
    exit function
end if  



在上面的示例中,加载的页面将在断点处停止,并弹出一个对话框,询问是否要调试它,然后可以遍历该函数,甚至可以像通常那样看到变量。

In the above example the page when loaded will stop at the breakpoint and pop up a dialog asking if you would like to debug it, you can then step through the function and even see variables like you normally would.

注意:该链接表示visual studio 2005,但它也可以在2010年(也应该在2012年),您也不需要DEBUG扩展。

note: The link says visual studio 2005 but it also works in 2010(and should also work in 2012), you also do not need the DEBUG extension.

还确保您在IIS中启动了服务器端调试,否则将无法正常工作。

also ensure you have server side debugging activated in IIS or this will not work.

这篇关于Visual Studio 2012在经典ASP调试中禁用了应用程序调试功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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