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

后端 未结 3 1633
暗喜
暗喜 2021-02-11 03:58

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

3条回答
  •  既然无缘
    2021-02-11 04:43

    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

    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

    For example:

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

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

    
      
    
    

提交回复
热议问题