调试asp页面的最佳方法是什么?

Jac*_*ble 0 asp.net debugging

我正在尝试让ASP页面正常工作,但它仍在不断爆炸.如何让它显示"response.write"信息而不是炸毁?

ps我注意到这是一种技术,并计划尝试一下.

  1. 在页面顶部广告On Error Resume Next在每行代码之后使用If Err.Number <> 0然后Response.Write Err.Description Err.Clear End如果你也可以设置一个Debuggingvariable例如intDebug你增加每x行intDebug = intDebug + 1

如果Err.Number <> 0则响应.Write intDebug response.Write"
"Response.Write Err.Description Err.Clear End if

Can*_*var 6

你为什么不调试?Visual Studio的调试功能非常出色.

对于ASP.NET:

只需输入断点并单击Debug/Attach Process 选择aspnet_wp.exe即可.

对于ASP:

在Visual Studio 2008中调试经典ASP(VBScript)