在 Visual Studio 中调试 Sharepoint 2010 的自定义解决方案

发布于 2024-10-11 12:44:59 字数 209 浏览 6 评论 0原文

我手动构建了 WSP 文件(使用 CAB 实用程序)并将其上传到 sharepoint 2010 服务器。我想调试打包在该 WSP 文件中的 dll,以测试事件是否被侦听器捕获。我附加到 w3wp.exe(出现的所有实例)。但是我发现没有加载符号来命中任何断点,并且线程正在退出并出现一些运行时异常。

我在这里缺少什么?我是否必须将 PDB 文件复制到任何特定位置?

谢谢

I built the WSP file manually (using CAB utility) and uploaded them to the sharepoint 2010 server. I want to debug the dll that was packaged in that WSP file to test if the events are caught by the listener. I attached to w3wp.exe (all instances that appears). however I find that the symbols are not loaded for any break point to be hit and the thread is getting exited with some run time exception.

what Am I missing here ? Do I have to copy my PDB files at any particular location ?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

蓝眼泪 2024-10-18 12:44:59

你的问题里就有答案了。是的,您必须使用命令提示符和复制语句将 pdb 文件上传到 GAC
这将在以下情况下提供
C:\WINDOWS\Assembly\GAC_MSIL>以目录形式打开它并复制您的 pdb 更

简单的选项是以调试格式编译您的 wsp

you have the answer in your question. yes you have to upload your pdb file to GAC using command prompt and copy statement
which would be available under
C:\WINDOWS\assembly\GAC_MSIL> in directory form open it and copy your pdb thier

or easier option is compile your wsp in debug format

半城柳色半声笛 2024-10-18 12:44:59

不需要将 PDB 符号文件复制到 GAC< /a> 如果 Visual Studio 配置正确:-

幸运的是,这也很容易
在 GAC 中进行调试,就像在 BIN 中一样,如果
您配置开发
环境正确。

不幸的是,
很少有人知道如何做到这一点,因为
互联网被污染,页面已满
被保留的不良信息
来自以前版本的.Net。


可以很容易地发现这些,因为它们
会说你需要复制调试
符号(.pdb 文件)到 GAC。在和
就其本身而言,这是行不通的。这些
天也完全
不必要的。

配置 VS ... 来调试
正确装配
,执行以下操作:

You don't need to copy the PDB symbols file into the GAC if Visual Studio is configured correctly :-

Fortunately, it's just as easy to
debug in the GAC as it is in BIN if
you configure the development
environment correctly.

Unfortunately,
few know how to do this because the
internet is polluted with pages full
of bad information that is a held over
from previous versions of .Net.

You
can spot these easily because they
will say you need to copy the debug
symbols (.pdb file) to the GAC. In and
of itself, that will not work. These
days it is also completely
unnecessary.

To configure VS ... to debug the
assemblies properly
, do the following:

原谅过去的我 2024-10-18 12:44:59

您在问题中提到了 Sandbox 标签,因此您必须附加到 SPUCWorkerProcess.exe 而不是 w3wp.exe,沙箱代码在隔离的工作程序中运行。

You mention the Sandbox tag in your question, so you have to attach to SPUCWorkerProcess.exe and not w3wp.exe, the sandbox code runs in an isolated worker.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文