Presentation is loading. Please wait.

Presentation is loading. Please wait.

Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.

Similar presentations


Presentation on theme: "Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013."— Presentation transcript:

1 Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013

2 Module Overview Debugging SharePoint Apps in Visual Studio Diagnosing Faults in Deployed Apps Testing Performance and Scalability

3 Lesson 1: Debugging SharePoint Apps in Visual Studio Configuring a SharePoint Site for Debugging Debugging JavaScript Code Demonstration: Debugging JavaScript in Visual Studio and Internet Explorer Debugging REST Calls Debugging Remote Events

4 Configuring a SharePoint Site for Debugging Debugging Tools in Visual Studio Output Immediates Call Stack IntelliTrace Enabling Debugging in Web.config Developer Site Collection Template Enabling the Developer Site Collection Feature

5 Debugging JavaScript Code Minimized and Debugging JavaScript Files Visual Studio JavaScript Debugging Internet Explorer JavaScript Debugging

6 Demonstration: Debugging JavaScript in Visual Studio and Internet Explorer In this demonstration, you will see how to: Use the Visual Studio Debugger to debug JavaScript in a SharePoint app. Use the Internet Explorer F12 Developer tools to profile the functions called in a web page.

7 Demonstration: Debugging JavaScript in Visual Studio and Internet Explorer

8 Debugging REST Calls Using the JavaScript CSOM reference to understand REST properties Checking data in Internet Explorer Using the Fiddler Web Debugger

9 Debugging Remote Events Developing Apps Using Remote SharePoint Servers Remote Event Receivers and Remote SharePoint Servers Locating the WCF service for a remote event receiver Debugging Remote Event Receivers Windows Azure Service Bus Configuring a SharePoint app project to use a service bus

10 Lesson 2: Diagnosing Faults in Deployed Apps Logging Errors in the App Monitoring Page IIS Tracing Using NuGet Logging Packages

11 Logging Errors in the App Monitoring Page Recording a custom error: try { //Place the operation that may cause an exception //in a try block } catch (Exception e) { SP.Utilities.Utility.logCustomAppError(context, "The operation caused an exception. “ + “The details were: " + e.Message); }

12 IIS Tracing Building Diagnostic Tools: 1. Configure tracing in web.config Ensure tracing is disabled by default. 2. Provide a user interface element to enable tracing Remember to provide a similar element to disable tracing after diagnostic information has been gathered. 3. Provide a link to trace.axd Users can forward the trace information to you.

13 Using NuGet Logging Packages NuGet Package Manager ELMAH MiniProfiler

14 Lesson 3: Testing Performance and Scalability SharePoint App Boundary and Supported Limits Performance Testing Tools Profiling an App Stress Testing Apps Discussion: Choosing a Performance Tool

15 SharePoint App Boundary and Supported Limits LimitTypeMaximum Value Number of apps in the Manage Licenses page Boundary2,000 Number of app Licenses in a single tenancy Supported1,000,000 Number of apps displayed in the Add an App page Boundary240 Number of managers for each app license Boundary30 Number of app licenses that a single user can view Boundary2,000 Number of apps that a user can see in the corporate catalog Boundary500

16 Performance Testing Tools Internet Explorer Developer Tools Profiler Network Fiddler The Statistics tab Custom Rules The Timeline Performance Tools in Visual Studio Profiling Tools Web Performance and Load Tests

17 Profiling an App Performance Issues Hotspots, bottlenecks, unintended calls. Profiling Methods Sampling Instrumentation Concurrency.NET Memory Tier Interaction Profiling Process Configuring a profiling session Running a profiling session Analyzing results in Performance Explorer

18 Stress Testing Apps Stress Testing Process 1. Record web performance tests 2. Configure a load test 3. Execute a load test 4. Analyze load test results Handling Dynamic Parameters Validation and Extraction Rules

19 Discussion: Choosing a Performance Tool Discuss the following scenarios with the class: Preparation for Deployment Identification of a Bug Optimization of a Procedure

20 Lab: Enabling ASP.NET Tracing Exercise 1: Adding a Diagnostics Page to a SharePoint App Exercise 2: Configuring ASP.NET Tracing Exercise 3: Using Trace Logs

21 Lab Scenario Occasional page errors in the Mileage Recorder app have proved difficult to replicate and fix in the development environment. You have been asked to enable ASP.NET tracing to ensure that users can generate more diagnostic information when problems arise.

22 Lab Review In Exercise 2, Task 1, you added a new element to the web.config file with the enabled attribute set to false. Why is it necessary to create this element, when code in the ToggleTracing action sets the enabled attribute to true? What are the consequences of leaving tracing enabled after you have diagnosed a bug?

23 Module Review and Takeaways Review Question(s) Best Practice Common Issues and Troubleshooting Tips

24 Course Evaluation


Download ppt "Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013."

Similar presentations


Ads by Google