[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。
发表人 主题:How to Pause ASP Code for Debugging
嘎嘎,是我
身份:admin
发帖:1435
登陆次数:3217
1F 发表于 2007/4/4 16:26:54
http://support.microsoft.com/kb/255886/en-us
===================================================

Before debugging server-side code, you need to enable debugging for your site. From the Microsoft Management Console (MMC), right-click the virtual directory, select Properties, and click Configuration. On the App Debugging tab, select Enable ASP server-side debugging.

To debug in JScript, place the DEBUGGER statement before the line of code at which you want to pause; for example:
 <%@ Language=JScript%>
<%
    Response.Write("Hello");
    debugger
    Response.Write("World");
%>
                
To debug a script written in VBScript, place the STOP statement before the line of code at which you want to pause; for example: 
<%
    Response.Write "Hello"
    Stop
    Response.write "World"
%>
                
When this script is run from a browser, the debugger interrupts the script and displays the .asp file with the statement pointer indicating the location of the DEBUGGER or STOP statement. At this point, you can inspect the values assigned to variables before they are passed to the component.

NOTE: Remember to disable debugging in production servers.

 
标题:
消息图标:                                             
                                            
正文:



* UBB 代码开启

 
CopyRight © 心缘地方 2005-2999. All Rights Reserved