WorkflowDebuggerSteppingOption 枚举



此 API 现已过时。

指定工作流调试器如何逐句通过复合活动的并发执行的子活动。Specifies how the workflow debugger will step through concurrently executing child activities of a composite activity.

public enum class WorkflowDebuggerSteppingOption
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public enum WorkflowDebuggerSteppingOption
type WorkflowDebuggerSteppingOption = 
Public Enum WorkflowDebuggerSteppingOption


Concurrent 1

将并发调试子活动。The child activities will be debugged concurrently.

Sequential 0

将按顺序调试子活动。The child activities will be debugged sequentially.



本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

此枚举与 WorkflowDebuggerSteppingAttribute 属性一起使用,用于定义以下两种行为:This enumeration is used with the WorkflowDebuggerSteppingAttribute attribute to define the following two behaviors:

  • 并发单步执行Concurrent stepping. 使用此单步执行模式可以在工作流中逐句通过和调试并发执行的活动。This mode of stepping enables you to step through and debug concurrently executing activities in the workflow. 使用此选项,可以看到在工作流中运行并发执行活动时控件发生的变化。With this option, you will notice that a change in control occurs when concurrently executing activities run within the workflow.

  • 顺序单步执行Sequential stepping. 使用此单步执行模式可以逐句通过和调试复合活动的特定分支,例如 ParallelActivityConditionedActivityGroup 活动。This mode of stepping enables you to step through and debug a particular branch of a composite activity, such as the ParallelActivity or the ConditionedActivityGroup activity. 如果使用此选项进行调试,则看不到由于工作流中并发执行其他活动而导致的控件变化。When you use this option to debug, you will not notice that a change in control occurs due to concurrent execution of other activities in the workflow. 调试器只逐句通过当前选定分支中的活动,而工作流中的其他活动可以并发执行。The debugger only steps through the activities in the currently selected branch while other activities in the workflow may be executing concurrently. 例如,默认情况下,ParallelActivity 活动中最左边的分支和 ConditionedActivityGroup 活动的第一个子活动用于单步执行。For example, by default, the leftmost branch in a ParallelActivity activity and the first child activity of a ConditionedActivityGroup activity are used for stepping. 如果要调试任何其他分支或子活动,则必须在分支或子活动上放置显式断点。If you are interested in debugging any other branch or child activity, an explicit breakpoint must be placed on that branch or child activity. 触发断点时,在该分支中继续单步执行。Stepping continues in that branch when the breakpoint is triggered.