Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Help for debugging .net code when working with sharepoint sites

  Asked By: Karissa    Date: Oct 28    Category: Sharepoint    Views: 934

Need Help for debugging .net code when working with sharepoint sites.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Nora Maxwell     Answered On: Oct 28

Assuming you're developing on the same box as SP is running, you'll need to
manually attach the Visual Studio debugger to the process running the app pool
(w3svc.exe). From memory, I think it's DEBUG -> ATTACH TO PROCESS, select the
w3svc.exe process and click Attach. If you have multiple w3svc.exe processes,
you can pick all of them, or figure out which one is running the app pool that
is used for the site that contains the code  you want to debug. Frankly, while
the latter may be more efficient, I just attach to all of them and don't notice
anything significant in performance.

Ironically, I posted a little shortcut about this earlier this week on my blog:
www.andrewconnell.com/.../5855.aspx

 
Answer #2    Answered By: Corina Duran     Answered On: Oct 28

I use this command in a short cut to obtain the w3wp.exe PID for the
worker process of a specific application pool (SharePointAppPool in this
example):
%comspec% /k %systemroot%\system32\iisapp.vbs /a SharePointAppPool &
pause & exit

 




Tagged: