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

Examples of org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebugger$ThisHandleResponse


        if (newValues.contains(oldValue)) {
          newValues.remove(oldValue);
        }
      }
      if (newValues.size() > 0) {
        RemoteDebugger debugger = (RemoteDebugger) debugTarget
            .getRemoteDebugger();
        List<IProject> toAddFiles = new ArrayList<IProject>();
        for (String newValue : newValues) {
          String localPath = debugger.convertToLocalFilename(
              newValue, debugger.getCurrentWorkingDirectory(),
              debugTarget.getLastFileName());
          IResource member = ResourcesPlugin.getWorkspace().getRoot()
              .findMember(localPath);
          if (member != null) {
            IProject project = member.getProject();
View Full Code Here


  public ServerDebugHandler() {
  }

  protected IRemoteDebugger createRemoteDebugger() {
    return new RemoteDebugger(this, fConnectionThread);
  }
View Full Code Here

    String remoteFileName = notification.getFileName();

    prepareForProcessing(remoteFileName, debugTarget);

    // send notification to tell debugger to continue processing file
    RemoteDebugger remoteDebugger = (RemoteDebugger) debugTarget
        .getRemoteDebugger();
    remoteDebugger
        .sendCustomNotification(new ContinueProcessFileNotification());
  }
View Full Code Here

  }

  protected void prepareForProcessing(String remoteFileName,
      PHPDebugTarget debugTarget) {

    RemoteDebugger remoteDebugger = (RemoteDebugger) debugTarget
        .getRemoteDebugger();
    ILaunchConfiguration launchConfiguration = debugTarget.getLaunch()
        .getLaunchConfiguration();

    debugTarget.setLastFileName(remoteFileName);

    boolean isWebServerDebugger = Boolean.toString(true).equals(
        debugTarget.getLaunch().getAttribute(
            IDebugParametersKeys.WEB_SERVER_DEBUGGER));
    String debugType = ""; //$NON-NLS-1$
    try {
      debugType = launchConfiguration.getAttribute(
          IDebugParametersKeys.PHP_DEBUG_TYPE, ""); //$NON-NLS-1$
    } catch (CoreException e) {
      PHPDebugPlugin.log(e);
    }

    if (isFirstFileToDebug) { // we suppose that we always get full path
      // here
      if (isWebServerDebugger) {
        debugTarget.mapFirstDebugFile(remoteFileName);

        // set current working directory to the current script directory
        // on debugger side
        if (debugType.equals(IDebugParametersKeys.PHP_WEB_SCRIPT_DEBUG)) {
          VirtualPath remotePath = new VirtualPath(remoteFileName);
          remotePath.removeLastSegment();
          remoteDebugger.setCurrentWorkingDirectory(remotePath
              .toString());
        }
      }
      debugTarget.addBreakpointFiles(debugTarget.getProject());
    }

    String localPath = remoteDebugger
        .convertToLocalFilename(remoteFileName);

    // send found breakpoints with remote file name
    if (localPath != null
        && ILaunchManager.DEBUG_MODE.equals(debugTarget.getLaunch()
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.debug.core.zend.debugger.RemoteDebugger$ThisHandleResponse

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.