Package com.pnfsoftware.jeb.core.util
Class DebuggerHelper
java.lang.Object
com.pnfsoftware.jeb.core.util.DebuggerHelper
Helper methods related to
debugger units.-
Method Summary
Modifier and TypeMethodDescriptionstatic IDebuggerUnitgetDebugger(IUnit unit) Retrieve or create a debugger for the provided code unit.static IDebuggerUnitgetDebugger(IUnit unit, boolean createIfNotExist) Retrieve a debugger for the provided code unit.static StringBuild the debugger unit type associated with a code unit type.
-
Method Details
-
typeName
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
Retrieve or create a debugger for the provided code unit.- Parameters:
unit- the target unit- Returns:
- the debugger unit or
null
-
getDebugger
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 unitcreateIfNotExist-trueto create a debugger if no suitable one already exists- Returns:
- the debugger unit or
null
-