Disabling the Visual Studio Debugger for Windows Workflow Foundation (Legacy)

This topic describes how to disable the Visual Studio Debugger using the configuration file when building Windows Workflow Foundation (WF) applications in the legacy Windows 工作流设计器. Use the legacy 工作流设计器 when you need to target either the .NET Framework 3.5 版 or the .NET Framework 3.0.

By default, the Visual Studio 2010 Debugger for Windows Workflow Foundation (WF) is enabled for a host process. To disable workflow debugging, you must explicitly turn it off by adding a "DisableWorkflowDebugging" entry <switches> element in the <system.diagnostics> section of the host configuration file.

The following example shows how to modify the host configuration file to disable workflow debugging.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
   <system.diagnostics>
      <switches>
         <add name="DisableWorkflowDebugging" value="true"/>
      </switches>
   </system.diagnostics>
</configuration>

另请参见

概念

Invoking the Visual Studio Debugger for Windows Workflow Foundation (Legacy)

其他资源

Debugging Legacy Workflows