开发者

VS2010: debug WCF service invoked asynchronously

开发者 https://www.devze.com 2023-01-14 07:37 出处:网络
I have a WPF client in the same solution as my WCF service: WPF client invokes service asynchronously but breakspoints set in the WCF service implementation are not hit.

I have a WPF client in the same solution as my WCF service: WPF client invokes service asynchronously but breakspoints set in the WCF service implementation are not hit.

WCF service is in a project of type "WCF service library". It has "Start WCF service host when debugging another project in this solution" checke开发者_Go百科d. I notice that indeed WCFServiceHost is bootstrapped hosting my service but no breakpoints are hit.

Do you have any tips on being able to debug this WCF service invoked asynchronously?

Thank you Bart


Use Visual Studio's "Attach to Process" option, to attach the debugger to the process running the WCF service host rather than to your WPF client. Start your WPF client without debugging (Ctrl-F5) and then press Ctrl-Alt-P and choose the WCF host process.

0

精彩评论

暂无评论...
验证码 换一张
取 消