Package jadx.gui.device.debugger
Class DebugController
- java.lang.Object
-
- jadx.gui.device.debugger.DebugController
-
- All Implemented Interfaces:
SmaliDebugger.SuspendListener,IDebugController
public final class DebugController extends java.lang.Object implements SmaliDebugger.SuspendListener, IDebugController
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDebugController.FrameNode-
Nested classes/interfaces inherited from interface jadx.gui.ui.panel.IDebugController
IDebugController.StateListener
-
-
Constructor Summary
Constructors Constructor Description DebugController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static RuntimeTypecastType(java.lang.String type)booleanexit()java.lang.StringgetProcessName()booleanisDebugging()booleanisSuspended()booleanmodifyRegValue(JDebuggerPanel.ValueTreeNode valNode, jadx.core.dex.instructions.args.ArgType type, java.lang.Object value)voidonSuspendEvent(SuspendInfo info)For step, breakpoint, watchpoint, and any other events that suspend the JVM.booleanpause()protected booleanremoveBreakpoint(BreakpointManager.FileBreakpoint fbp)booleanrun()protected voidsetBreakpoint(long cid, BreakpointManager.FileBreakpoint fbp)protected booleansetBreakpoint(BreakpointManager.FileBreakpoint bp)voidsetStateListener(IDebugController.StateListener listener)booleanstartDebugger(JDebuggerPanel debuggerPanel, java.lang.String adbHost, int adbPort, int androidVer)booleanstepInto()booleanstepOut()booleanstepOver()booleanstop()voidupdateField(jadx.gui.device.debugger.DebugController.FieldTreeNode node)booleanupdateRegister(jadx.gui.device.debugger.DebugController.RegTreeNode regNode, RuntimeType type, boolean retry)
-
-
-
Method Detail
-
startDebugger
public boolean startDebugger(JDebuggerPanel debuggerPanel, java.lang.String adbHost, int adbPort, int androidVer)
- Specified by:
startDebuggerin interfaceIDebugController
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspendedin interfaceIDebugController
-
isDebugging
public boolean isDebugging()
- Specified by:
isDebuggingin interfaceIDebugController
-
run
public boolean run()
- Specified by:
runin interfaceIDebugController
-
stepInto
public boolean stepInto()
- Specified by:
stepIntoin interfaceIDebugController
-
stepOver
public boolean stepOver()
- Specified by:
stepOverin interfaceIDebugController
-
stepOut
public boolean stepOut()
- Specified by:
stepOutin interfaceIDebugController
-
pause
public boolean pause()
- Specified by:
pausein interfaceIDebugController
-
stop
public boolean stop()
- Specified by:
stopin interfaceIDebugController
-
exit
public boolean exit()
- Specified by:
exitin interfaceIDebugController
-
modifyRegValue
public boolean modifyRegValue(JDebuggerPanel.ValueTreeNode valNode, jadx.core.dex.instructions.args.ArgType type, java.lang.Object value)
- Specified by:
modifyRegValuein interfaceIDebugController- Parameters:
type- must be one of int, long, float, double, string or object.
-
getProcessName
public java.lang.String getProcessName()
- Specified by:
getProcessNamein interfaceIDebugController
-
castType
protected static RuntimeType castType(java.lang.String type)
-
setStateListener
public void setStateListener(IDebugController.StateListener listener)
- Specified by:
setStateListenerin interfaceIDebugController
-
onSuspendEvent
public void onSuspendEvent(SuspendInfo info)
Description copied from interface:SmaliDebugger.SuspendListenerFor step, breakpoint, watchpoint, and any other events that suspend the JVM. This method will be called in stateListenQueue.- Specified by:
onSuspendEventin interfaceSmaliDebugger.SuspendListener
-
updateField
public void updateField(jadx.gui.device.debugger.DebugController.FieldTreeNode node)
-
updateRegister
public boolean updateRegister(jadx.gui.device.debugger.DebugController.RegTreeNode regNode, RuntimeType type, boolean retry)
-
setBreakpoint
protected boolean setBreakpoint(BreakpointManager.FileBreakpoint bp)
-
setBreakpoint
protected void setBreakpoint(long cid, BreakpointManager.FileBreakpoint fbp)
-
removeBreakpoint
protected boolean removeBreakpoint(BreakpointManager.FileBreakpoint fbp)
-
-