调试Atlas:使用单独的Trace viewer跟踪调试ASP.NET页面

ASP.NET调试技巧
本文介绍在ASP.NET中如何使用Trace功能进行调试,特别是在使用Partial Rendering时如何通过Trace.axd查看完整的跟踪信息。
部署运行你感兴趣的模型镜像

ASP.NET下,普通的调试方式是:

在<% Page ...  %> 指令中添加 Trace="true" 命令。这将在页面下方显示跟踪信息。

If you are using tracing on the server to debug Web pages with partial rendering enabled (the page contains a ScriptManager control with EnablePartialRendering="true" and an UpdatePanel control with Mode="Conditional"), you should use the trace viewer (Trace.axd) to display trace output. When you append trace trace output to the end of the page, it is initially rendered, but it is not updated as a result of asynchronous postbacks, because only the contents of UpdatePanel controls that need to be refreshed will change.

然而,如果是在Altals下,使用PartialRendering功能时,页面只是部分更新,不更新整个页面,因此跟踪信息不会更新。为此,需要使用Tracer viewer来单独查看调试跟踪信息。

1. 在web.config中,添加:

<configuration>

<system.web>

<trace enabled="true"/>

</system.web>

</configuration>

2.打开应用程序根目录下的Trace.axd

刷新页面就可以看到更新的调试信息。

您可能感兴趣的与本文相关的镜像

ACE-Step

ACE-Step

音乐合成
ACE-Step

ACE-Step是由中国团队阶跃星辰(StepFun)与ACE Studio联手打造的开源音乐生成模型。 它拥有3.5B参数量,支持快速高质量生成、强可控性和易于拓展的特点。 最厉害的是,它可以生成多种语言的歌曲,包括但不限于中文、英文、日文等19种语言

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值