SoFunction
Updated on 2025-03-06

How to debug a service using windows console

            Server1 sv = new Server1();
            if ( > 0)
            {
                (args);
                char c;
                while ((c = (())) != 'q')
                    if (c == 'g') ();
                ();
                ();
            }
            else
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[]
            {
                sv
            };
                (ServicesToRun);
            }
        }
        protected override void OnStart(string[] args)
        {

        }
        protected override void OnStop()
        {

        }
    }