当前位置: 代码迷 >> 综合 >> Debugging and Tracing your website
  详细解决方案

Debugging and Tracing your website

热度:86   发布时间:2023-12-22 03:45:37.0

website--->Asp.net Configuration 可视化的配置,

1.trace 的使用:

a)页面级的trace

<%@page trace="true",debug="true"  tracemode="sortbyTime"%>

<%@page trace="true",debug="true"  tracemode="sortbyCategory"%>

b) 在web.config中设置:

<trace enable="true">

http://.../trace.axd:显示 网站中所有页面中的信息

2.Debug

a)配置错误,语法错误,编译错误,运行时错误

<customErrors  defaultRedirict="errpage.htm" mode="on">

mode的三种模式:

on:转到自己写的出错页,可以屏蔽信息

off:具体的报错信息,用于调试

remoteonly:本地的报错,远程的屏蔽信息

3.web event

 

 

  相关解决方案