在 Visual Studio 中调试 Sharepoint 2010 的自定义解决方案
我手动构建了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你的问题里就有答案了。是的,您必须使用命令提示符和复制语句将 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
您不需要将 PDB 符号文件复制到 GAC< /a> 如果 Visual Studio 配置正确:-
You don't need to copy the PDB symbols file into the GAC if Visual Studio is configured correctly :-
您在问题中提到了 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.