开发者

How to Step into NServiceBus 2.0 with Debugger and also Navigate in it with Resharper?

开发者 https://www.devze.com 2022-12-22 13:39 出处:网络
We\'ve just newly decided to use NServiceBus on our project and we\'re experiencing some problems. Rather than \"ask for a fish\" every time we hit an issue, we\'d prefer to \"teach ourselves to fish\

We've just newly decided to use NServiceBus on our project and we're experiencing some problems. Rather than "ask for a fish" every time we hit an issue, we'd prefer to "teach ourselves to fish". This means setting things up so we can step into the NServiceBus source code and understand NSe开发者_如何学CrviceBus more deeply.

We need some help figuring out how to pull this off. It is unclear how to get Visual Studio to successfully build NServiceBus upon each compile, since NServiceBus comes with its own Nant build process that uses ILMerge to create consolidated assemblies and so forth.

We have already tried building NServiceBus with the Nant script and then referencing those dlls and pdb's. However, that does not let us step everywhere, and it also does not let VS.NET and Resharper navigate via "Find Usages" and other features.

So what we would really like to create is a VS.NET Solution that builds our in-house software and NServiceBus, and allows us to seamlessly Step and Navigate between them.

Is this possible? What would we need to do to pull this off?


Not quite the exact answer you were looking for, but you can check out the post i made on debugging into NServiceBus which involves the following steps:

  1. Downloading the source code.
  2. Building the source code using the "build.bat"
  3. Then referencing the dlls and pdb files in your solutions, so that you can step into the NServiceBus source code.

I've successfully change the logging behaviour to always to a Message.ToString() in our code so that the Log4Net logs were a bit clearer.

Check it out here:

http://www.craftyfella.com/2010/12/debugging-into-nservicebus-so-you-can.html

Hope it helps.

Dave

0

精彩评论

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

关注公众号