Contents
Here are the steps to debug a web part in SharePoint.
- Open the project and set appropriate breakpoints.
- Create a Web Part page on the default SharePoint site.
- Add the Web Part to the page.
- Attach the debugger to the W3wp. In the Debug menu in Visual Studio . NET, click “Processes”.
How do I debug an application in IIS?
To start debugging, select IIS Express or in the toolbar, select Start Debugging from the Debug menu, or press F5. The debugger pauses at the breakpoints. If the debugger can’t hit the breakpoints, see Troubleshoot debugging.
How do I enable remote debugging in IIS?
Choose a Debug configuration, and then choose Remove additional files at destination under the File Publish options. In the Settings dialog box, enable debugging by clicking Next, choose a Debug configuration, and then choose Remove additional files at destination under the File Publish options.
What is the process name for IIS?
Web applications running within Microsoft’s Internet Information Services (IIS) utilize what is known as IIS worker processes. These worker processes run as w3wp.exe, and there can be multiple per computer.
How to debug a web application on IIS?
When we host sites on IIS, the Worker Process ( w3wp.exe) is used to run the web application. We need to attach to this particular process from Visual Studio to debug the web application. This article describes the overall idea of debugging an application using this method.
How to debug SharePoint applications in Visual Studio?
The following sections explain how to debug SharePoint applications in Visual Studio. When you first debug a SharePoint solution in Visual Studio, a dialog box alerts you that the web.config file is not configured to enable debugging.
How to remote debug ASP.NET in Visual Studio?
This guide explains how to set up and configure a Visual Studio ASP.NET MVC 4.5.2 application, deploy it to IIS, and attach the remote debugger from Visual Studio. To remote debug ASP.NET Core instead, see Remote Debug ASP.NET Core on an IIS Computer.
This means that some debugging functionality, such as breakpoints, will not work correctly. To disable the automatic activation of the feature in SharePoint and allow proper debugging of Feature Event Receivers, set the value of the project’s Active Deployment Configuration property to No Activation before debugging.