Skip to content

Smali debugger

skylot edited this page Jan 27, 2024 · 4 revisions

Smali debugger support in jadx-gui

Features

  • single step
  • set breakpoint
  • modify register value
  • modify fields of object

Shortcuts

  • F2 set/remove breakpoint
  • F7 step into
  • F8 step over
  • Shift + F8 step out
  • F9 run

For debugging, you must have:

  1. adb
  2. a debuggable app, or a rooted device/emulator that can make apps debuggable.

Debugger will search ANDROID_HOME and PATH to look for adb.

Warning

Android Studio can interfere with jadx debugger, so it is better to close it before attaching to process in jadx.

Usage

  1. Setting up an app to debug:

debugger_present_wait

  1. Adb usage:

debugger_present_adb

  1. Debugging:

Note

Breakpoints and current debug position highlight works only in smali viewer in Show dalvik bytecode mode.
This mode should be activated automatically, if not, you need to enable it from right-click popup menu in smali view.

debugger_present_debug2