Debug Recording server

If I open the recording server with the startup arg “-x”, a window shows up. This window closes a couple of seconds after. How do I properly debug the recording server when I’m developing a driver?

Here’s the log:

Hi. Could you please write the further topics about MIPDriver framework in the special group for this: https://developer.milestonesys.com/s/group/0F90O000000UCENSA4/mip-driver-framework

Regarding your question, as I understand you want to debug your driver, that starts in a separate process. To do this you will have to put a code that waits for the debugger to be attached in your driver.

For example, you can put it in the Constructor of your Driver definition, or in the Connection manager, depending on where you want to stop first time.

The code itself looks like this:

while (!System.Diagnostics.Debugger.IsAttached)

        {

            **Thread**.Sleep(100);

        }

That will make sure that your driver framework process will wait until you attach the debugger to it (find DriverFrameworkProcess in the list of the processes), and then you can have breakpoint further in the code.

I solved it with

            Debugger.Launch();