如何通过Visual Studio调试Sharepoint解决方案/功能? [英] How to debug Sharepoint solution/feature through Visual studio?

查看:304
本文介绍了如何通过Visual Studio调试Sharepoint解决方案/功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我试图通过wspbuilder实用程序安装一个webpart到Sharepoint站点。我已经创建,构建并部署了12个配置单元的项目。之后,通过Cental Administration Site安装解决方案并在网站集中激活。



我只是想知道如何调试复杂的功能/解决方案?因为这两个进程(构建部署和激活)完全独立,所以我可以如何在进程中附加一个进程?

解决方案

WSPBuilder上下文菜单中有一个选项附加到IIS工作进程。只要应用程序被加载(通常意味着您在尝试附加SharePoint帐户之前已经访问过一个页面),并且SharePoint中部署的代码与Visual Studio中的代码相同,那么您应该可以设置断点并执行代码。


Recently I tried to install a webpart through wspbuilder utility to the Sharepoint Site. I have created, built and deployed a project to the 12 hive. After that installed the solution through Cental Administration Site and activated in the site collection.

I just wonder how can I debug the complex feature/solution ? Because both processes (build-deploy and activate) totally independent, how can I attach a process with the worker process ?

解决方案

In the WSPBuilder context menu there is an option "Attach to IIS worker process". As long as the app is loaded (generally means that you have accessed a page in the SharePoint site before trying to attach) and the code deployed in SharePoint is the same as the code you have in Visual Studio, you should be able to set breakpoints and step through the code.

这篇关于如何通过Visual Studio调试Sharepoint解决方案/功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆