Package org.eclipse.debug.core.model

Examples of org.eclipse.debug.core.model.IDebugTarget


    private void addNodesAsDebugTargets(final ILaunch aLaunch) {
        final OtpErlangList nodes = ErlideDebug.nodes(backend.getOtpRpc());
        if (nodes != null) {
            for (int i = 1, n = nodes.arity(); i < n; ++i) {
                final OtpErlangAtom a = (OtpErlangAtom) nodes.elementAt(i);
                final IDebugTarget edn = new ErlangDebugNode(this, a.atomValue());
                aLaunch.addDebugTarget(edn);
            }
        }
    }
View Full Code Here


        subMonitor.worked(1);
        subMonitor.subTask(LaunchingMessages.SocketAttachConnector_Establishing_connection____2);
        try {
            VirtualMachine vm = connector.attach(map);
            String vmLabel = constructVMLabel(vm, host, portNumberString, configuration);
            IDebugTarget debugTarget= DroolsDebugModel.newDebugTarget(launch, vm, vmLabel, null, allowTerminate, true);
            launch.addDebugTarget(debugTarget);
            subMonitor.worked(1);
            subMonitor.done();
        } catch (TimeoutException e) {
            abort(LaunchingMessages.SocketAttachConnector_0, e, IJavaLaunchConfigurationConstants.ERR_REMOTE_VM_CONNECTION_FAILED);
View Full Code Here

                    .handleStatus(fgNeedStackFrame, value);
            if (stackFrame != null) {
                return stackFrame;
            }
        }
        IDebugTarget target = value.getDebugTarget();
        IJavaDebugTarget javaTarget = (IJavaDebugTarget) target
                .getAdapter(IJavaDebugTarget.class);
        if (javaTarget != null) {
            IThread[] threads = javaTarget.getThreads();
            for (int i = 0; i < threads.length; i++) {
                IThread thread = threads[i];
View Full Code Here

    });

    ph.start();

    if(mode.equals(org.eclipse.debug.core.ILaunchManager.DEBUG_MODE)){
      IDebugTarget target = new XVRDebugTarget(launch, p, commandPort, eventPort, ph);
      launch.addDebugTarget(target);
    }

    //return null;//(IOConsole)DebugUITools.getConsole(p); 
  }
View Full Code Here

        }
        // monitor.worked(step);
        System.out.println("Running ACA with: " + config.getName());
        ILaunch acaRunLaunch = launch(config, ILaunchManager.DEBUG_MODE);
        setActiveLaunch(acaRunLaunch);
        IDebugTarget target = acaRunLaunch.getDebugTarget();
        completedTargets.add((DestecsDebugTarget) target);
        File outputFolder = target == null ? null
            : ((DestecsDebugTarget) target).getOutputFolder();

        while (!acaRunLaunch.isTerminated())
        {
          internalSleep(100);
        }

        if (acaRunLaunch != null && !acaRunLaunch.isTerminated())
        {
          acaRunLaunch.terminate();
        }

        setActiveLaunch(null);

        @SuppressWarnings("unchecked")
        Map<Object, Object> attributes = config.getAttributes();
        String data = "** launch summery for ACA: " + config.getName();
        for (Map.Entry<Object, Object> entry : attributes.entrySet())
        {
          data += entry.getKey() + " = " + entry.getValue() + "\n";
        }

        data += "\n\n----------------------- MEMENTO -------------------------------\n\n";
        data += config.getMemento();

        if (outputFolder != null)
        {
          try
          {
            FileWriter outFile = new FileWriter(new File(outputFolder, "launch"));
            PrintWriter out = new PrintWriter(outFile);
            out.println(data);
            out.close();
          } catch (IOException e)
          {
            e.printStackTrace();
          }
        }
        internalSleep(1000);// just let the tools calm down.
      } catch (Exception e)
      {
        DestecsDebugPlugin.logError("Error in AcaSimlation manager", e);
      }
    }

    try
    {
      target.terminate();
    } catch (DebugException e)
    {
      DestecsDebugPlugin.logError("Failed to terminate destecs target", e);
    }
    refreshProject();
View Full Code Here

  @Override
  public void run()
  {
    try
    {
      IDebugTarget target = getRunningTarget();

      if (target != null)
      {

        target.suspend();

      }
    } catch (DebugException e)
    {
      Activator.log(e);
View Full Code Here

  @Override
  public void run()
  {
    try
    {
      IDebugTarget target = getRunningTarget();

      if (target != null)
      {

        target.terminate();

      }
    } catch (DebugException e)
    {
      Activator.log(e);
View Full Code Here

  protected IDebugTarget getRunningTarget() throws CoreException
  {
    ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(DESTECS_LAUNCH_ID);
    IDebugTarget target = null;
    for (ILaunch iLaunch : launchManager.getLaunches())
    {
     
        if(iLaunch.getLaunchConfiguration().getType() == configType)
        {
View Full Code Here

    {
      if(debugEvent.getSource() instanceof IDebugTarget)
      {
        ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
        ILaunchConfigurationType configType = launchManager.getLaunchConfigurationType(DESTECS_LAUNCH_ID);
        IDebugTarget target = (IDebugTarget) debugEvent.getSource();
        try
        {
          if(target.getLaunch().getLaunchConfiguration().getType() == configType)
          {
            switch(debugEvent.getKind())
            {
              case(DebugEvent.CREATE):
                doResume();
View Full Code Here

  @Override
  public void run()
  {
    try
    {
      IDebugTarget target = getRunningTarget();

      if (target != null)
      {

        target.resume();

      }
    } catch (DebugException e)
    {     
      Activator.log(e);
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.model.IDebugTarget

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.