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

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

问题描述

我想在 Visual Studio 2012 上使用 IIS Express 调试 Classic ASP 网站.因此,我在 VS 2012 中附加了 iisexpress.exe,但它显示 Application Debugging is disabled.可能是什么问题?我要启用任何配置设置吗?

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?

推荐答案

据我所知,我没有 Visual Studio 2012 来测试它,Visual Studio 无法原生调试 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天全站免登陆