SharePoint 2010 / Debug - Locating Active SharePoint Process (W3WP.exe)
Often times you may be looking at debugging SharePoint custom code and need to attach the debugger to a process. The process list may list several instances of W3WP.exe. To locate which instance you are particularly using, you can go to the command prompt and run "%systemroot%\system32\inetsrv\appcmd list wps".
The following cmdlet loops to allow me to quickly refresh the net services list, which is useful after an IIS reset.
The following cmdlet loops to allow me to quickly refresh the net services list, which is useful after an IIS reset.
:loop cls %systemroot%\system32\inetsrv\appcmd list wps pause goto loop
Comments