Examples of PHPDebugTarget


Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

   */
  protected IDebugTarget createDebugTraget(DebugConnectionThread thread,
      ILaunch launch, String url, int requestPort, PHPProcess process,
      boolean runWithDebug, boolean stopAtFirstLine, IProject project)
      throws CoreException {
    return new PHPDebugTarget(thread, launch, url, requestPort, process,
        runWithDebug, stopAtFirstLine, project);
  }
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

   */
  protected IDebugTarget createDebugTarget(DebugConnectionThread thread,
      ILaunch launch, String phpExeString, String debugFileName,
      int requestPort, PHPProcess process, boolean runWithDebugInfo,
      boolean stopAtFirstLine, IProject project) throws CoreException {
    return new PHPDebugTarget(thread, launch, phpExeString, debugFileName,
        requestPort, process, runWithDebugInfo, stopAtFirstLine,
        project);
  }
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

   * Get active remote debugger
   */
  public static IRemoteDebugger getActiveRemoteDebugger() {
    IDebugTarget debugTarget = getActiveDebugTarget();
    if (debugTarget != null && debugTarget instanceof PHPDebugTarget) {
      PHPDebugTarget phpDebugTarget = (PHPDebugTarget) debugTarget;
      return phpDebugTarget.getRemoteDebugger();
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

  public String getCWD() {
    if (!this.isActive()) {
      return null;
    }

    PHPDebugTarget debugTarget = getDebugHandler().getDebugTarget();
    int suspendCount = debugTarget.getSuspendCount();
    if (suspendCount == previousSuspendCount && cachedCWD != null) {
      return cachedCWD;
    }

    if (canDo(GET_CWD)) {
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

   * PHP script, which is currently running.
   *
   * @return current working directory
   */
  public String getCurrentWorkingDirectory() {
    PHPDebugTarget debugTarget = debugHandler.getDebugTarget();

    String cwd = getCWD();
    if (cwd != null) {
      PathMapper pathMapper = PathMapperRegistry
          .getByLaunchConfiguration(debugTarget.getLaunch()
              .getLaunchConfiguration());
      if (pathMapper != null) {
        PathEntry cwdEntry = pathMapper.getLocalFile(cwd);
        if (cwdEntry != null) {
          cwd = cwdEntry.getResolvedPath();
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

   *            Script that is on the top of the debug stack currently
   * @return local file, or <code>null</code> in case of resolving failure
   */
  public String convertToLocalFilename(String remoteFile, String cwd,
      String currentScript) {
    PHPDebugTarget debugTarget = debugHandler.getDebugTarget();
    if (debugTarget.getContextManager().isResolveBlacklisted(remoteFile)) {
      return remoteFile;
    }

    IWorkspace workspace = ResourcesPlugin.getWorkspace();

    // check if this file is already local
    if (workspace.getRoot().findMember(remoteFile) != null) {
      return remoteFile;
    }

    // If we are running local debugger, check if "remote" file exists and
    // return it if it does
    if (debugTarget.isPHPCGI() && new File(remoteFile).exists()) {

      IFile wsFile = null;
      IPath location = new Path(remoteFile);
      IProject[] projects = workspace.getRoot().getProjects();
      IProject currentProject = debugTarget.getProject();
      // set current project to higher priority:
      for (int i = 0; i < projects.length; i++) {
        IProject project = projects[i];
        if (project.equals(currentProject)) {
          IProject tmp = projects[0];
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

  public PHPstack getCallStack() {
    if (!this.isActive()) {
      return null;
    }

    PHPDebugTarget debugTarget = getDebugHandler().getDebugTarget();
    int suspendCount = debugTarget.getSuspendCount();
    if (suspendCount == previousSuspendCount && cachedStack != null) {
      return cachedStack;
    }

    GetCallStackRequest request = new GetCallStackRequest();
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

      fConsole.connect(debugMonitor, PHP_DEBUG_STREAM);
    }

    fLaunch = process.getLaunch();

    PHPDebugTarget target = null;
    if (fLaunch.getDebugTarget() instanceof PHPDebugTarget) {
      target = (PHPDebugTarget) fLaunch.getDebugTarget();
    }
    if (target != null) {
      IPHPConsoleEventListener[] listeners = getConsoleEventListeners();
      for (IPHPConsoleEventListener eventListener : listeners) {
        eventListener.init(fLaunch, debugMonitor, fPHPHyperLink);
        target.addConsoleEventListener(eventListener);
      }
    }
    super.connect(process, fConsole);
  }
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

    }
    if (textViewer instanceof PHPStructuredTextViewer) {
      setEditor(((PHPStructuredTextViewer) textViewer).getTextEditor());
    }

    PHPDebugTarget debugTarget = getDebugTarget();
    if (debugTarget == null) {
      return null;
    }

    int offset = hoverRegion.getOffset();
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.model.PHPDebugTarget

        String fileInProject = fi.getFile().getProjectRelativePath()
            .toString();
        if (fileInDebug != null
            && fileInDebug.endsWith('/' + fileInProject)
            || fileInDebug.equals(fileInProject)) {
          PHPDebugTarget debugTarget = (PHPDebugTarget) stackFrame
              .getDebugTarget();
          return debugTarget;
        }
      } else {
        // File on the include Path
        PHPDebugTarget debugTarget = (PHPDebugTarget) stackFrame
            .getDebugTarget();
        return debugTarget;
      }
    }
    return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.