在 Workflow Foundation (WF) 设计器中命中断点

发布于 2024-07-15 20:38:34 字数 586 浏览 8 评论 0原文

当外部调用时,对于存储在库中的工作流,您是否无法在 VS.NET 2008 工作流设计器中命中断点?

我在同一解决方案中有一个顺序工作流库项目和一个控制台应用程序项目。 我使用如下代码(VB.NET)从应用程序调用工作流程:

Dim wr As WorkflowRuntime = New WorkflowRuntime()
Dim wi As WorkflowInstance = _
    wr.CreateWorkflow(GetType(PaymentWorkflow), parameters)
wi.Start()

我将控制台应用程序设置为启动项目,并在工作流程设计器中为以这种方式调用的工作流程设置一个断点,但我得到了可怕的“断点”不会被击中”符号,事实上,它没有被击中。

是否无法调试以这种方式调用的工作流程? 我希望这不是真的,因为我的目标是创建一个将从外部进程调用的工作流程库,并且我肯定需要调试它们。

谢谢你, Bill Dawson

(环境:VS.NET 2008 SP (9.0.30729.1)、.NET 3.5 SP1,并安装了用于调试的 KB957912 补丁。)

Is it true that you can't hit breakpoints in VS.NET 2008 workflow designer for workflows stored in a library, when invoked externally?

I've got a Sequential Workflow Library project and a console app project in the same solution. I call the workflow from the app with code such as this (VB.NET):

Dim wr As WorkflowRuntime = New WorkflowRuntime()
Dim wi As WorkflowInstance = _
    wr.CreateWorkflow(GetType(PaymentWorkflow), parameters)
wi.Start()

I set the console app as startup project and put a break point in the workflow designer for the workflow being invoked this way, but I get the dreaded "breakpoint won't be hit" symbol and, indeed, it's not hit.

Is it not possible to debug workflows invoked in this way? I hope this isn't true, because my goal was to make a library of workflows which will be called from external processes, and I'll definitely need to debug them.

Thank you,
Bill Dawson

(Environment: VS.NET 2008 SP (9.0.30729.1), .NET 3.5 SP1, and with KB957912 patch for debugging installed.)

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

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

发布评论

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

评论(1

别挽留 2024-07-22 20:38:34

您需要做的是将工作流程设置为您的库作为启动程序。 现在进入项目设置并告诉它在使用调试选项卡中的启动外部程序运行时执行控制台应用程序。 这样,调试器将在工作流程中的断点处停止并允许您单步执行它们。

What you need to do is set your library with the workflow as your startup program. Now go into the project settings and tell it to execute your console application when run using the start external program in the debug tab. This way the debugger will stop on breakpoints in your workflow and allow you to step through them.

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