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

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

问题描述

我想调试经典ASP 网​​站的Visual Studio 2012 IIS防爆preSS 。因此,我附 iisex press.exe VS房价,但它显示应用程序调试已禁用。可能是什么问题?我是否要启用任何配置设置?


解决方案

我没有的Visual Studio 2012就来测试它在我所知的Visual Studio无法调试ASP经典code本身。
我调试我的ASP经典code的方法是把在停止语句在一个我想上面的调试线
喜欢这个帖子里说。断点只是键入停止。

 函数DoDate(INP)
   停止
如果ISNULL(INP),然后
    DoDate =从不
    退出功能
万一

在上面的例子中,当装载将在断点处停止,并弹出一个对话框,询问您是否想调试它,你就可以通过函数步,甚至可以看到像你这样的变量页面通常会。

请注意:链接说的Visual Studio 2005,但它也可以在2010年(也应该在2012年的工作),你也并不需要DEBUG扩展<​​/ P>。

也确保您在IIS激活服务器端调试或这是不行的。

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?

解决方案

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.

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.

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

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

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