Package flash.tools.debugger

Examples of flash.tools.debugger.Session


  public final static String m_newline = System.getProperty("line.separator"); //$NON-NLS-1$

  public static void doShowStats(DebugCLI cli) throws IllegalStateException
  {
    /* we do some magic casting */
    Session session = cli.getSession();
    StringBuilder sb = new StringBuilder();
    try
    {
      PlayerSession p = (PlayerSession)session;
      DMessageCounter cnt = p.getMessageCounter();
View Full Code Here


   */
  public static void doShowProperties(DebugCLI cli)
  {
    StringBuilder sb = new StringBuilder();

    Session session = cli.getSession();
    for (String key: cli.propertyKeys())
    {
      int value = cli.propertyGet(key);
      sb.append(key);
      sb.append(" = "); //$NON-NLS-1$
View Full Code Here

  public static void doShowBreak(DebugCLI cli) throws NotConnectedException
  {
    cli.waitTilHalted();
    try
    {
      Session session = cli.getSession();
      StringBuilder sb = new StringBuilder();
      if (session.isSuspended())
      {
        sb.append(getLocalizationManager().getLocalizedTextString("stopped")); //$NON-NLS-1$
        sb.append(' ');
        appendBreakInfo(cli, sb, true);
      }
View Full Code Here

  }

  // Extended low level break information
  public static void appendBreakInfo(DebugCLI cli, StringBuilder sb, boolean includeFault) throws NotConnectedException
  {
    Session session = cli.getSession();
    FileInfoCache fileInfo = cli.getFileCache();

    int reason = session.suspendReason();
    int offset = ((PlayerSession)session).getSuspendOffset();
    int index = ((PlayerSession)session).getSuspendActionIndex();

    SwfInfo info = null;
    try { info = fileInfo.getSwfs()[index]; } catch(ArrayIndexOutOfBoundsException oobe) {}
View Full Code Here

  {
    cli.waitTilHalted();
    try
    {
      // an integer followed by a variable name
      Session session = cli.getSession();
      long id = cli.nextLongToken();
      String name = (cli.hasMoreTokens()) ? cli.nextToken() : null;

      StringBuilder sb = new StringBuilder();
      sb.append(name);
View Full Code Here

     boolean functionNamed = false;
    int numLines = 0;
     try
     {
      FileInfoCache fileInfo = cli.getFileCache();
      Session session = cli.getSession();
      if (cli.hasMoreTokens())
       {
        arg1 = cli.nextToken();
        if (arg1.equals("-")) //$NON-NLS-1$
        {
View Full Code Here

  /**
   * Allow the session to receive property updates
   */
  void setSessionProperty(String s, int value)
  {
    Session sess = getSession();
      if (sess != null)
      sess.setPreference(s, value);
    Bootstrap.sessionManager().setPreference(s, value);
  }
View Full Code Here

  /**
   * Allow the session to receive property updates
   */
  void setSessionProperty(String s, int value)
  {
    Session sess = getSession();
      if (sess != null)
      sess.setPreference(s, value);
    Bootstrap.sessionManager().setPreference(s, value);
  }
View Full Code Here

  public final static String m_newline = System.getProperty("line.separator"); //$NON-NLS-1$

  public static void doShowStats(DebugCLI cli) throws IllegalStateException
  {
    /* we do some magic casting */
    Session session = cli.getSession();
    StringBuilder sb = new StringBuilder();
    try
    {
      PlayerSession p = (PlayerSession)session;
      DMessageCounter cnt = p.getMessageCounter();
View Full Code Here

   */
  public static void doShowProperties(DebugCLI cli)
  {
    StringBuilder sb = new StringBuilder();

    Session session = cli.getSession();
    for (String key: cli.propertyKeys())
    {
      int value = cli.propertyGet(key);
      sb.append(key);
      sb.append(" = "); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of flash.tools.debugger.Session

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.