Total Pageviews

9/02/2009

Debug in ASP.NET application and in Sharepoint Custom WebParts

Many times it happen that we found difficulty to debug a very big application as it takes to long time to Compile and run the entire application.

Even case is worst when you have errors in other pages and you want to debug some other pages of your application.

In this case you can debug your application by following steps:-

Open Visual Studio with your website.
Go to Solution Explorer.
Go to page you want to debug.
Place necessary break points in coding part.
Right click on the page name in solution explorer and select View in Browser.

Now go to IDE.
Go to Tools menu Select Attach to Process.
Select both the check boxes as Bottom and find out W3WP process and click attach.
Now refresh the page.

In share point also same steps you need to follow to debug your custom web parts, Over here you will find Web part project instead of your web application. one other difference is you have to place DLL in GAC or in Root directory of your extended web application.

Click here to do some Sharepoint Yoga

1 comments:

Anonymous said...

Thanks bhavik this is very helpful i am beginner to Asp.net and don't know about this quite helpful

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews