Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Sharepoint solution/feature through Visual studio?

Recently I tried to install a webpart through wspbuilder utility to the Sharepoint Site. I have created, built and deployed a project to the 12 hive. After that installed the solution through Cental Administration Site and activated in the site collection.

I just wonder how can I debug the complex feature/solution ? Because both processes (build-deploy and activate) totally independent, how can I attach a process with the worker process ?

like image 301
pointlesspolitics Avatar asked Jan 22 '23 07:01

pointlesspolitics


1 Answers

In the WSPBuilder context menu there is an option "Attach to IIS worker process". As long as the app is loaded (generally means that you have accessed a page in the SharePoint site before trying to attach) and the code deployed in SharePoint is the same as the code you have in Visual Studio, you should be able to set breakpoints and step through the code.

like image 62
Tom Clarkson Avatar answered Mar 08 '23 15:03

Tom Clarkson