Class DebuggerHelper

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

public class DebuggerHelper extends Object
Helper routines for debugger units.
  • Constructor Details

    • DebuggerHelper

      public DebuggerHelper()
  • Method Details

    • typeName

      public static String typeName(String codeUnitType)
      Parameters:
      codeUnitType - unit type of a code unit
      Returns:
      the unit type of a decompiler plugin for the provided code unit
    • getDebugger

      public static IDebuggerUnit getDebugger(IUnit unit)
      Retrieve or create a debugger for the provided code unit.
      Parameters:
      unit -
      Returns:
      the decompiler 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, find the one which is attached. If several debuggers exists and are attached, the result will be null.

      Parameters:
      unit -
      Returns:
      the decompiler unit or null