Sharepoint学习笔记—DebugTroubleShooting--不同调试对象的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到,因此,你有可能要等上一会儿)
转载于:https://www.cnblogs.com/wsdj-ITtech/archive/2011/12/08/2258260.html
总结
以上是生活随笔为你收集整理的Sharepoint学习笔记—DebugTroubleShooting--不同调试对象的Attach方式的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: UVA 662 Fast Food
- 下一篇: 基于批处理技术的重启桌面-explore