Package org.eclipse.php.debug.core.debugger

Examples of org.eclipse.php.debug.core.debugger.IDebugHandler


    // }
    // }

    fBreakpointSet = new BreakpointSet(project, fIsPHPCGI);

    IDebugHandler debugHandler = null;
    IDebugParametersInitializer parametersInitializer = DebugParametersInitializersRegistry
        .getBestMatchDebugParametersInitializer(launch);
    if (parametersInitializer != null) {
      String debugHandlerID = parametersInitializer.getDebugHandler();
      if (debugHandlerID != null) {
        try {
          debugHandler = DebugHandlersRegistry
              .getHandler(debugHandlerID);
        } catch (Exception e) {
          PHPDebugPlugin.log(e);
        }
      }
    }
    // If couldn't find contributed IDebugHandler - use default
    if (debugHandler == null) {
      debugHandler = new ServerDebugHandler();
    }
    debugHandler.setDebugTarget(this);
    debugger = debugHandler.getRemoteDebugger();

    fThread = new PHPThread(this);
    fThreads = new IThread[] { fThread };
    fTerminated = false;
View Full Code Here


import org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget;

public class ScriptEndedNotificationHandler implements IDebugMessageHandler {

  public void handle(IDebugMessage message, PHPDebugTarget debugTarget) {
    IDebugHandler debugHandler = debugTarget.getRemoteDebugger()
        .getDebugHandler();
    debugHandler.handleScriptEnded();
  }
View Full Code Here

      .compile("(.*)\\((\\d+)\\) : eval\\(\\)'d code"); //$NON-NLS-1$

  public void handle(IDebugMessage message, PHPDebugTarget debugTarget) {
    ParsingErrorNotification parseError = (ParsingErrorNotification) message;

    IDebugHandler debugHandler = debugTarget.getRemoteDebugger()
        .getDebugHandler();
    String errorText = parseError.getErrorText();

    int lineNumber = parseError.getLineNumber();
    int errorLevel = parseError.getErrorLevel();
    String fileName = parseError.getFileName();

    // Check whether the problematic file is actually eval() code:
    Matcher m = EVALD_CODE_PATTERN.matcher(fileName);
    if (m.matches()) {
      fileName = m.group(1);
      lineNumber = Integer.parseInt(m.group(2));
    }

    DebugError debugError = new DebugError(errorLevel, fileName,
        lineNumber, errorText);
    debugHandler.parsingErrorOccured(debugError);
  }
View Full Code Here

          }
        }
      }
    } finally {
      int currentLine = readyNotification.getLineNumber();
      IDebugHandler debugHandler = debugTarget.getRemoteDebugger()
          .getDebugHandler();
      debugHandler.ready(currentFile, currentLine);
    }
  }
View Full Code Here

import org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget;

public class HeaderOutputNotificationHandler implements IDebugMessageHandler {

  public void handle(IDebugMessage message, PHPDebugTarget debugTarget) {
    IDebugHandler debugHandler = debugTarget.getRemoteDebugger()
        .getDebugHandler();
    debugHandler.newHeaderOutput(((HeaderOutputNotification) message)
        .getOutput());
  }
View Full Code Here

public class OutputNotificationHandler implements IDebugMessageHandler {

  public void handle(IDebugMessage message, PHPDebugTarget debugTarget) {
    String output = ((OutputNotification) message).getOutput();

    IDebugHandler debugHandler = debugTarget.getRemoteDebugger()
        .getDebugHandler();
    debugHandler.newOutput(output);
  }
View Full Code Here

public class SessionStartedNotificationHandler implements IDebugMessageHandler {

  public void handle(IDebugMessage message, PHPDebugTarget debugTarget) {
    DebugSessionStartedNotification notification = (DebugSessionStartedNotification) message;
    IDebugHandler debugHandler = debugTarget.getRemoteDebugger()
        .getDebugHandler();

    String fileName = notification.getFileName();
    String uri = notification.getUri();
    String query = notification.getQuery();
    String options = notification.getOptions();
    debugHandler.sessionStarted(fileName, uri, query, options);
  }
View Full Code Here

public class DebugErrorNotificationHandler implements IDebugMessageHandler {

  public void handle(IDebugMessage message, PHPDebugTarget debugTarget) {
    DebuggerErrorNotification parseError = (DebuggerErrorNotification) message;
    IDebugHandler debugHandler = debugTarget.getRemoteDebugger()
        .getDebugHandler();
    int errorLevel = parseError.getErrorLevel();
    DebugError debugError = new DebugError();
    String errorText = parseError.getErrorText();
    if (errorText != null && !errorText.equals("")) { //$NON-NLS-1$
      debugError.setErrorText(errorText);
    }

    debugError.setCode(errorLevel);
    debugHandler.debuggerErrorOccured(debugError);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.debug.core.debugger.IDebugHandler

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.