Package flash.tools.debugger

Examples of flash.tools.debugger.Location


        if (swf == null) {
            return breakEnableRequest(file.getId(), line);
        }

        for (final SourceFile similarFile : getSimilarSourceFilesInSwf(swf, file)) {
            final Location location = breakEnableRequest(similarFile.getId(), line);
            if (location != null) {
                return location;
            }
        }
View Full Code Here


  /**
   * Received when a breakpoint has been removed (or disabled)
   */
  Location breakEnableRequest(int fileId, int line) throws NotConnectedException
  {
    Location l = null;
    try
    {
      l = m_session.setBreakpoint(fileId, line);
    }
    catch(NoResponseException nre)
View Full Code Here

    // now let's comb the table looking to see if this breakpoint should
    // be removed at the session level.  Use the first entry as a template
    // for which location we are talking about.
    int at = 0;
    boolean hit = false;
    Location l = col.first();
    do
    {
        at = breakpointIndexOf(l, at);
      if (at > -1)
      {
View Full Code Here

  {
    // set the module and line
    Frame[] frames = m_session.getFrames();
    Frame ctx = frames[frameNum];

    Location l = ctx.getLocation();
    SourceFile f = l.getFile();
    int id = f.getId();
    int line = l.getLine();

        setListingPosition(id, line);
    }
View Full Code Here

  // see if this module, line combo is the current location
  boolean isCurrentLocation(int module, int line)
  {
    boolean yes = false;
    Location l = getCurrentLocation();
    if (l != null)
    {
      SourceFile file = l.getFile();
      if (file != null && file.getId() == module && l.getLine() == line)
        yes = true;
    }
    return yes;
  }
View Full Code Here

  }
 
  boolean enableBreakpoint(BreakAction a, boolean autoDisable, boolean autoDelete) throws NotConnectedException
  {
    boolean retval = false;
    Location l = a.getLocation();   // use the first location as a source file / line number template
    if (l != null)
    {
      LocationCollection col = enableBreak(l.getFile(), l.getLine());
      if (!col.isEmpty())
      {
        a.setEnabled(true);
        a.setLocations(col);
        a.setAutoDisable(autoDisable);
View Full Code Here

   *
   * @return some hit breakpoint requested silence, shhhh!
   */
  boolean processBreak(boolean postStep, StringBuilder sb) throws NotConnectedException
  {
    Location l = getCurrentLocation();
    if (l == null || l.getFile() == null)
      return false;

    int fileId = l.getFile().getId();
    int line = l.getLine();
    boolean isSilent = false;
    boolean bpHit = false;
    boolean stoppedDueToBp = false;

    int count = breakpointCount();
View Full Code Here

      Iterator itr = col.iterator();
   
      // probe all locations looking for a match
      while(!match && itr.hasNext())
      {
        Location l = (Location)itr.next();
        if (l != null && l.getFile().getId() == fileId && l.getLine() == line && (isolateId == -1 || l.getIsolateId() == isolateId))
          match = true;
      }
    }
    return match;
  }
View Full Code Here

  public void removeFileIdRange(int startingId, int endingId)
  {
    Iterator<Location> i = iterator();
    while(i.hasNext())
    {
      Location l = i.next();
      int id = (l.getFile() == null) ? -1 : l.getFile().getId();
      if (id >= startingId && id <= endingId)
        i.remove();
    }
  }
View Full Code Here

  {
    boolean found = false;
    Iterator<Location> i = iterator();
    while(i.hasNext() && !found)
    {
      Location l = i.next();
      int id = (l.getFile() == null) ? -1 : l.getFile().getId();
      if (id == fileId && l.getLine() == line)
        found = true;
    }
    return found;
  }
View Full Code Here

TOP

Related Classes of flash.tools.debugger.Location

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.