In the previous SharePoint version, because developer dashboard was not displayed, the use of ASP. NET tracing information became one of the important methods for Sharepoint developers to debug and diagnose. With the developer dashboard, we can still integrate the tracing information of Asp.net into the developer dashboard.
ASP. NET tracing contains the following information:
• Event tracking and execution time information
• Control tree and related information
• Session and cookies
• The header and form of the page and passing parameters ......
Some information presented by Asp.net tracing overlaps with developer dashboard, but some information (such as the parameters that form passes to the page) can only be seen in Asp.net tracing.
You can use the following code to enable ASP. NET tracing.
Spdeveloperdashboardsettings settings = spwebservice. contentservice. descridashboardsettings;
Settings. displaylevel = spdeveloperdashboardlevel. on;
Settings. traceenabled = true;
Settings. Update ();
The above code is actually usedSpdeveloperdashboardset.pdfA Property of a class --TraceenableWhen it is set to true, Asp.net tracing is enabled.
We can develop a webpart Based on administrator CENTREL of SharePoint, embed the above Code in this webpart, and execute it to achieve our goal.
After enabling Asp.net tracing, the effect is as follows:
Spdeveloperdashboardset.pdfClass has other attributes. For details, see (spdeveloperdashboardsettings). The important attributes include:
Maximumcriticaleventstotrack, maximumsqlqueriestotrack, requiredpermissions. In the previous SharePoint version, because developer dashboard was not displayed, the use of ASP. NET tracing information became one of the important methods for Sharepoint developers to debug and diagnose. With the developer dashboard, we can still integrate the tracing information of Asp.net into the developer dashboard.
ASP. NET tracing contains the following information:
• Event tracking and execution time information
• Control tree and related information
• Session and cookies
• The header and form of the page and passing parameters ......
Some information presented by Asp.net tracing overlaps with developer dashboard, but some information (such as the parameters that form passes to the page) can only be seen in Asp.net tracing.
You can use the following code to enable ASP. NET tracing.
Spdeveloperdashboardsettings settings = spwebservice. contentservice. descridashboardsettings;
Settings. displaylevel = spdeveloperdashboardlevel. on;
Settings. traceenabled = true;
Settings. Update ();
The above code is actually usedSpdeveloperdashboardset.pdfA Property of a class --TraceenableWhen it is set to true, Asp.net tracing is enabled.
We can develop a webpart Based on administrator CENTREL of SharePoint, embed the above Code in this webpart, and execute it to achieve our goal.
After enabling Asp.net tracing, the effect is as follows:
Spdeveloperdashboardset.pdfClass has other attributes. For details, see (spdeveloperdashboardsettings). The important attributes include:
Maximumcriticaleventstotrack, maximumsqlqueriestotrack, requiredpermissions.