Search code examples
workflow-foundation-4

Debugging issue with workflow service application


For some reason none of the breakpoints I set on activities (through the designer) are working in a workflow service application project I'm debugging in VS2010. There's an mvc application that uses the workflow services and I've tried setting them both as startup projects and setting only the workflow service application as the startup and calling it via the WCF test client.

Is there any setting I could have wrong that would prevent breakpoints from working? I know the activities that have the breakpoints set are being processed (based on results) they just never break execution when the breakpoint is hit.

Additional info

  • all projects are set to build with debug config
  • workflow service is xamlx workflow being hosted with ASP.NET development server (VS F5)

Solution

  • The most important is that the project containing the workflow where the breakpoint is set is the startup project. Another thing that will often help is creating a CodeActivity with just Debugger.Break() in it and adding that to your workflow.