Debugging an EXCHANGE transport agent in VS2010 C #

I was given a source to a transport agent who analyzes incoming email that meets certain criteria. I need to make some changes, but I need to track the variables, and my debugging attempts were unsuccessful.

I create a dll, set it instead, set a breakpoint, and then join the corresponding process, but nothing happens. I have no experience with this debugging method, and I am sure that I am missing a step, but all the documentation I can find basically has a process specified as these few steps. Any help?

+4
source share
1 answer

It revealed

For those in the same situation, you need to do the following:

  • Compile the project in debug mode.
  • Expand it for sharing, but you will.
  • Since this is a DLL and is executed through exchange, the exchange will be the host process, so you have to attach debugging to the exchange process for debugging. You can do this, but by going to the Debug menu in VS and selecting "Attach to process", select the process that will run the DLL.
  • When VS joins the process, just set breakpoints in your code, and you should be good to go.
+4
source

Source: https://habr.com/ru/post/1390008/


All Articles