Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Debugging in SharePoint Web part

  Asked By: Ganesh Eng.         Date: Jun 19, 2009      Category: Sharepoint      Views: 208
 

Iam unable to debug the web part control embedded in the share point
portal. Can any one works on share point portal? please help me to solve
this problem?
Iam following the steps mentioned in the debug help document downloaded
from the microsoft web site.

Note: Iam using NetMeeting to connect to the remote share point server
2003

Tagged:          

 

1 Answer Found

 
Answer #1       Answered By: Yessenia Dejesus          Answered On: Jun 19, 2009       

In general, I follow these steps:

1) Compile webpart in debug  mode
2) Build a CAB file from the project output
3) Use STSADM -o addwppack command to install the webpart
4) Copy the webpart's .dll and pdb. files from the project's bin folder to the
c:\inetpub\wwwroot\bin folder (if your root is at the default location)
5) In VS.Net, attach to the w3wp.exe process in using the Debug/Processes menu
option
6) Go to a page with the webpart installed, when the page loads (or refreshes)
your first breakpoint in the VS project will trap execution, and you can debug
as normal

I have noticed occasional odd behavior, but this generally works  well.

 
Didn't find what you were looking for? Find more on Debugging in SharePoint Web part Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].