开发者

Unable to debug another assembly's code

I have a WCF proje开发者_开发百科ct that I am running in Visual Studio 2010, and it is referencing another project's implementation.

When I set a breakpoints inside the other project, and press F5 to load up the test client, I'm unable to hit any breakpoints in the other assemblies, only the ones in my test client project.

I even checked the bin folder, and the dll and pdb files are there.

How come the symbols are loaded for the other assembly?


You need to attach your debugger to the WCF host. It is either IIS or self host executable.


Look out for...

[System.Diagnostics.DebuggerStepThroughAttribute()]

... in svcutil generateed WCF code. It will stop you debugging this code.


See if my blog post on this issue helps

http://w4ik.wordpress.com/2010/09/21/debugging-a-wcf-service/

the main point is that you may need to modify the client's config file like so

<system.web>
  <compilation debug="true" />
<system.web>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜