Class DebugServerExecutor

    • Constructor Detail

      • DebugServerExecutor

        public DebugServerExecutor()
    • Method Detail

      • runServer

        public Process runServer​(ILaunchableRuntimeComponent debugServer,
                                 int port,
                                 Long parentPid)
                          throws RuntimeExecutionException
        Description copied from interface: IDebugServerExecutor
        Run local debug server process with this 1C:Enterprise runtime debug server component. Launched debug server can be used for debugging.

        Debug server process can use parentPid to check state of parent process (once in second), and terminate itself, when parent is terminated.

        Returns started Process instance.

        Specified by:
        runServer in interface IDebugServerExecutor
        Parameters:
        debugServer - the 1C:Enterprise runtime launchable component with debug server, cannot be null
        port - the port to listen by launched debug server process, must be between 0 and 65535
        parentPid - the parent process pid, can be null, then will not be tracked
        Returns:
        the launched 1C:Enterprise runtime debug server process, never null
        Throws:
        RuntimeExecutionException - if 1C:Enterprise Runtime debug server process launch fails