Jerry’s Blogs

April 24, 2006

Debugging SharePoint Webparts

Filed under: Project Server — jerryyasir @ 4:59 pm

There are two ways to debug Sharepoint Webparts one is Debugging using VS. Net 2003 interface and the second one is to attach the Sharepoint worker process (W3wp.exe) to the debugger.  Developers mostly use the second one but first one is also good

Tasks Detailed Steps

1. Validate the SharePoint security configuration settings.

1. Open web.config at c:\inetpub\wwwroot

2. Verify or Modify the SharePoint security settings to

WSS_Medium or higher. (i.e. <trust level="WSS_Medium" originUrl="" />)

3. Execute StartàRunàiisreset

2. Change the Configuration Properties to start the project at the correct location.

1. Click Project->Properties in Visual Studio

2. Click “Configuration Properties”

3. Click “Debugging”

4. In the “Start Action section, change the “Debug Mode” to URL. Click the Apply button.

5. In the “Start Action” section change the “Start URL” to “http://localhost”.

6. Click OK

3. Allow the project to be Debugged in Visual Studio.

1. Click Project->Properties in Visual Studio

2. Click “Configuration Properties”

3. Click “Debugging”

4. In the “Debuggers” section, change the “Enable ASP.NET Debugging” to TRUE.

5. Click OK

4. Insert a break point 1. Inside Visual Studio set a break point in the code or press F9.

5. Begin debugging

1. Press F5 or Press the Run button.

 

 

Best Regards,

Jerry

EPM\SharePoint Consultant\ Sr. Software Engineer

INTECH Process Automation
315 H-3, Johar Town,
Near Expo Center Lahore, Punjab 54950, Pakistan

Email: yasir.attiq@gmail.com Work: +92 42 5312511-09 Ext 213 Mobile: +92345 4257573

See My Blogs,

Professional Profile

 

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.