Package org.epic.debug.util

Examples of org.epic.debug.util.RemotePort


        ILaunchConfiguration configuration,
        String mode,
        ILaunch launch,
        IProgressMonitor monitor) throws CoreException
    {
        RemotePort debugPort = createDebugPort(launch);
       
        try
        {           
            CGIProxy cgiProxy = new CGIProxy(launch, "CGI Process");
            int brazilPort = RemotePort.findFreePort();

            IProcess process = startBrazil(
                launch, cgiProxy, brazilPort, debugPort);
           
            cgiProxy.waitForConnect();
            if (!cgiProxy.isConnected())
            {
                PerlDebugPlugin.getDefault().logError(
                    "(CGI-Target) Could not connect to CGI-Proxy");
                launch.terminate();
                return;
            }
            launch.addProcess(cgiProxy);
           
            openBrowser(launch, brazilPort);
           
            if (debugPort != null)
                createCGIDebugTarget(launch, process, debugPort);
        }
        catch (CoreException e)
        {
            if (debugPort != null) debugPort.shutdown();
            launch.terminate();
            throw e;
        }
    }
View Full Code Here


   
    private RemotePort createDebugPort(ILaunch launch)
    {
        if (!isDebugMode(launch)) return null;
       
        RemotePort debugPort = new RemotePort("DebugTarget.mDebugPort");
        debugPort.startConnect();
        return debugPort;
    }
View Full Code Here

    setAttribute(ATTR_PROCESS_TYPE, "EpicCGIProxy");
    mIsConnected = false;
    mIsTerminated = false;
    mLabel = fLabel;

    mInStream = new RemotePort("CGIProxy.mInStream");
    mInStream.startConnect();
    mOutStream = new RemotePort("CGIProxy.mOutStream");
    mOutStream.startConnect();
    mErrorStream = new RemotePort("CGIProxy.mErrorStream");
    mErrorStream.startConnect();

    mWaitThread = new Thread("EPIC-Debugger:CGIProxy")
    {
View Full Code Here

    private PerlTarget startDebugTarget(
        ILaunchConfiguration configuration,
        ILaunch launch,
        IProgressMonitor monitor) throws CoreException
    {
        RemotePort debugPort = new RemotePort("DebugTarget.mDebugPort");
        debugPort.startConnect();
       
        IProcess process = startPerlProcess(
            launch, "Perl Debugger", debugPort.getServerPort());

        if (debugPort.waitForConnect(true) != RemotePort.WAIT_OK)
        {
            PerlDebugPlugin.errorDialog(getTimeoutErrorMessage(process));
            launch.terminate();
            return null;
        }
View Full Code Here

TOP

Related Classes of org.epic.debug.util.RemotePort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.