无法在Visual Studio 2010中调试Project Server工作流 [英] Cannot debug Project Server Workflows in Visual Studio 2010

查看:90
本文介绍了无法在Visual Studio 2010中调试Project Server工作流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题导致我正在处理当前项目的重大问题(无法调试使生活变得困难),奇怪的是它间歇性地工作但现在我可以轻松地复制这个问题:


  1. 下载P14SDK
  2. 提取样本 - 分支工作流程
  3. 在VS2010中加载项目并将部署服务器配置为本地PWA(在同一台上)机器)
  4. 在第一个活动上设置断点 onWorkflowActivated1
  5. 命中调试
  6. 断点未命中,所以转到调试菜单并附加到进程,然后附加到所有w3wp.exe进程 找到

断点仍未被击中。


我在我的开发服务器上尝试了这个,这些服务器的配置完全不同,奇怪的是我的真实项目(不是SDK样本)它在上周的一个阶段工作了吗?


我还能错过什么?


 


提前致谢,


PS。我的调试选项是为项目设置的,并没有优化等。

解决方案

Hello Martin,


1。你试过关闭VS2010&再次打开?

2.也许您已经检查过这个但是虽然您可能在调试模式下运行,但您可能仍在编译您的代码。检查配置管理器是否已将所有项目配置为编译以进行调试

3. 您是否在工作流程中使用PSI?工作流创建项目或执行另一个使用PSI中的Queue方法之一的操作(例如QueueCreateProject),该过程使用Project Server队列服务。在附加到处理
对话框中,单击Microsoft.Office.Project.Server.Queuing.exe进程。


请检查以下选项:


http://msdn.microsoft.com/en-us/library/ ee767699.aspx#pj14_InstallWorkflow_Debugging


http://blogs.msdn.com/b/project_programmability/archive/2010/07/15/debugging-a-project-server-workflow-在视觉工作室-2010.aspx


This problem is causing me significant issues with a current project im working on (not being able to debug makes life hard), strangely it was working intermittently but now I can replicate this issue with ease:

  1. Download P14SDK
  2. Extract Samples - Branching Workflow
  3. Load Project in VS2010 and configure deployment server to local PWA (on the same machine)
  4. Set a Breakpoint on the first activity onWorkflowActivated1
  5. Hit Debug
  6. Breakpoint is not hit, so go to Debug Menu and Attach to Process, then attach to all w3wp.exe processes found

Breakpoint is still never hit.

I've tried this on both my development servers which have wildly different configurations, strangely on my real project (not the SDK sample) it was working at one stage last week???

What else could I be missing?

 

Thanks in advance,

PS. My debugging options are set for the project and it is not optimizing etc.

解决方案

Hello Martin,

1. Did you try to close the VS2010 & open again?
2. Maybe you have checked this already but although you may be running in debug mode you may still be compiling your code in release. Check through your configuration manager that all the projects are configured to be compiled for debug
3. Are you using PSI in your workflow? the workflow creates a project or does another operation that uses one of the Queue methods in the PSI (for example QueueCreateProject), the process uses the Project Server Queue Service. In the Attach to Process dialog box, click the Microsoft.Office.Project.Server.Queuing.exe processes.

Please check the options in below:

http://msdn.microsoft.com/en-us/library/ee767699.aspx#pj14_InstallWorkflow_Debugging

http://blogs.msdn.com/b/project_programmability/archive/2010/07/15/debugging-a-project-server-workflow-in-visual-studio-2010.aspx


这篇关于无法在Visual Studio 2010中调试Project Server工作流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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