如何访问堆栈帧,而调试ASP.net程序?堆栈、程序、ASP、net

2023-09-07 03:21:03 作者:乱了思绪.

如何访问堆栈帧信息,同时调试ASP.net程序?

How to access stack frame information while debugging ASP.net program?

推荐答案

如果你指的调用堆栈窗口,您可以查看的在调试的时候的使用打开调用堆栈窗口要么它是 CTRL + ALT + C默认热键,系统或通过使用的IDE菜单 调试/窗/调用堆栈

If you're referring the "Call Stack" window, you can view that when debugging by opening the Call Stack Window using either it's default hotkey of CTRL+ALT+C, or by using the IDE menu of Debug / Windows / Call Stack

另外,如果你指的是 ASP.NET的内置跟踪能力,由此,ASP.NET运行时将显示为ASP.NET页面的单个请求的诊断信息,您可以在实现这一的每页的基础上加入跟踪=真 指令在特定页面顶部

Alternatively, if you're referring to ASP.NET's built-in Tracing capability, whereby the ASP.NET runtime will display diagnostic information about a single request for an ASP.NET page, you can achieve this on a per page basis by adding Trace="true" to the Page directive at the top of the specific page

例如:

<%@ Page Trace="true" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

也可以实现ASP.NET跟踪应用范围,加入&LT;跟踪&GT; 指令的&LT;的System.Web&GT; 部分中的的web.config 文件。即。

or you can achieve ASP.NET tracing application-wide, by adding the <trace> directive to the <system.web> section of the web.config file. I.e.

<system.web>
  <trace enabled="true"/>
</system.web>