TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sreenu kolusu
NA
38
181k
Debugging SharePoint 2010 Web Part from Visual Studio 2010
Aug 9 2012 2:05 PM
Involved Steps
1. Deploy your webpart
2. Add the webpart to webpart page in a sharepoint site.
3. Place a break point in that webpart code file.
4.GO To "Debug" menu, and choose "Attach to Process".
5.By default the following settings are selected in "Attach to:"
under "Attach to: " section, Click on "Select Button"
By default "Automatically determine the type of code to debug" is selected. Now change the selection to
"Debug these code types" and check "Managed(V2.0,V1.1,V1.0)" and click "OK".
6. Check the "Show processes in all sessions" check box.
7. Now scroll down in Available process and select all w3wp.exe and Click on "Attach" button
8. Now run the page that contains the webpart and click the your button(where i placed breakpoint)
in visual studio breakpoint is hitted so now am able to step through the code.
Reply
Answers (
0
)
How to Add/Create Custom Properties Visual Web part in SharePoint
Creating List Definition Using Visual Studio 2010 in SharePoint 2010