joshb
joshb

Reputation: 5220

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

Upvotes: 1

Views: 3161

Answers (4)

karthikeyan hbk
karthikeyan hbk

Reputation: 1

Breakpoint wouldn't stop on Workflow for me because I was pointing to Xaml file which is not present at right location.

Solution: Right Click on the xaml file and Check the Tag:

<Sequence sad:XamlDebuggerXmlReader.FileName= "Your Xaml File Path" 

Upvotes: 0

THX-1138
THX-1138

Reputation: 21730

If workflow's xaml file has been moved, the breakpoints will stop working.

To solve: Open xaml file (as code, not in designer) and find XamlDebuggerXmlReader attribute on the top-level activity (just do textual search) and make sure that path matches the actual location of the file (you can right click the file name tab and select "Copy Full Path" to get file's full path).

Notice that specified path is relative to the output directory, so you can set it to "../../Workflow1.xaml" for example, to avoid having to fix the path every time you move the file (or forcing every developer to tweak the file for their local path).

Upvotes: 2

Maurice
Maurice

Reputation: 27632

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.

Upvotes: 1

Yahia
Yahia

Reputation: 70369

I am not really sure because you don't provide enough information, so this is more of a "general" troubleshooting:

EDIT: please check these http://msdn.microsoft.com/en-us/library/dd489403.aspx

Upvotes: 0

Related Questions