Sharepoint学习笔记—Debug&TroubleShooting--不同调试对象的Attach方式

在Sharepoint的开发环境中调试不同的对象有时需要Attach到不同的进程,下面就是一些常见的情况
   1、Farm Solution     -----W3WP.EXE
   2、SandBox Solution-----PUCWorkerProcess.exe,
   3、用到了Full-trust Proxy的SandBox Solution--SPUCWorkerProcessProxy.exe
   4、feature receivers----Feature Receiver默认情况下是自动被Visual Studio 启动。你可以在Visual Studio的部署设置中更改这种设置。
        4.1、feature receivers的 activation/deactivation :根据它被activation/deactivation 的方式,你需要Attaching到不同的进程。
             • 在web界面上启动或停止----W2WP.EXE
             • 在PowerShell中启动或停止---- PowerShell.exe
        4.2、feature receivers的 FeatureInstalled/FeatureUninstalling/FeatureUpgrading(安装/卸载/升级)----- owstimer.exe

          (在Attach的owstimer.exe时需要注意的是,你的断点可能并不会马上被Hit到,因为它们的执行依赖于timer job的启动,当timer job调用了这些feature的receiver时,它们的断点才会被Hit到,因此,你有可能要等上一会儿)

posted @ 2011-12-08 04:43  wsdj  阅读(1334)  评论(1编辑  收藏  举报