Class DebuggerHelper

java.lang.Object
com.pnfsoftware.jeb.core.util.DebuggerHelper

public class DebuggerHelper extends Object
Helper methods related to debugger units.
  • Method Details

    • typeName

      public static String typeName(String codeUnitType)
      Build the debugger unit type associated with a code unit type.
      Parameters:
      codeUnitType - the code unit type
      Returns:
      the debugger unit type for the provided code unit type
    • getDebugger

      public static IDebuggerUnit getDebugger(IUnit unit)
      Retrieve or create a debugger for the provided code unit.
      Parameters:
      unit - the target unit
      Returns:
      the debugger unit or null
    • getDebugger

      public static IDebuggerUnit getDebugger(IUnit unit, boolean createIfNotExist)
      Retrieve a debugger for the provided code unit.

      An existing debugger unit that can potentially manage the provided code unit will be returned. If several are found, an attached one is preferred; otherwise, the first matching one is returned.

      Parameters:
      unit - the target unit
      createIfNotExist - true to create a debugger if no suitable one already exists
      Returns:
      the debugger unit or null