说明:
用函数封装起来是为了防止加入Response.End的地方过多,当然,你也可以不用函数的形式,直接在需要调试的地方写代码。
形式1:
sub debug(outputVar)
'输出变量outputVar的值
Response.Write "<Script>window.alert('The variable value:"&outputVar&"')</Script>"
Response.End
end sub
形式2:
sub debug(isBreak)
'isBreak是Boolen值的参数,如果设置为true,则进行中断,否则,不中断。
if isBreak then
Response.End
end sub