Kleyson Rios
Kleyson Rios

Reputation: 2867

How to debug a RTD Server C# Implementation

I'm trying do learn how to implement a RTD Server for Excel.

I found this project https://www.codeproject.com/Articles/5343545/Create-Csharp-DCOM-Simple-Server-to-Use-Excel-RTD that I could build and use it in the excel with success.

But to understand the code I need to debug the code setting some breakpoints and inpecting line by line and the variables.

How can I debug a COM RTD Server C# implementation in Visual Studio ?

Upvotes: 1

Views: 179

Answers (1)

Simon Mourier
Simon Mourier

Reputation: 138841

You can just start or attach to the process where code runs, put a breakpoint in a line of your code and it should work.

Another solution is to put a Debugger.Launch() statement somewhere in your code and just-in-time debugging will ask you how you want to debug (this needs proper configuration which should be ok by default).

See also Difference between Debugger.Launch and Debugger.Break

Upvotes: 0

Related Questions