skylot / jadx

Dex to Java decompiler
Apache License 2.0
41.59k stars 4.87k forks source link

[gui] Can we really set breakpoints in Jadx GUI? #2093

Open tteguayco opened 9 months ago

tteguayco commented 9 months ago

Issue details

I've successfully connected Jadx GUI Debugger with an app running in Genymotion, but I can't see any way to add a breakpoint to start debugging in the Jadx GUI.

According to these instructions here, it should be with F2 but it doesn't work.

Jadx version

1.4.7.277-1a07ab8a

Java version

17.0.10

OS

skylot commented 9 months ago

Not sure how breakpoints doesn't work. Maybe this will help (from wiki):

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.

Also, you can set breakpoint by clicking on the space before line numbers (like in most of the IDEs)

tteguayco commented 9 months ago

Hmm, are those options that you mention in this view? Can't see them. And still when clicking on the line numbers, no breakpoints seem to be set.

image

Also, I must be doing something wrong while attaching the debugger. JADX Gui says that the process is attached (screenshot above) but in my emulator I keep getting:

image

jpstotz commented 9 months ago

What emulator image do you use (which Android version is running in your Genymotion emulator)?

The screenshot you have posted does show only fields and other definitions. I am not sure if Jadx-Gui can set a breakpoint on such structures, better scroll to a method with code and try to set a breakpoint on a code line.

pipiscrew commented 5 months ago

hi all,

I have 3 real devices

using application v1.5


@skylot only on J5 was able to run debugger, on other no processes appear
2024-05-17_125320

on S6/Pixel4 using

adb shell ps

success lists the processes

J5

the breakpoint you mentioning

set breakpoint by clicking on the space before line numbers

here doing this (see line numbers) without any indicator has BP, and actually works! 2024-05-17_125335

the Launch Application is not working here on android device stuck to 'Waiting for Debugger' dialog but attach to process (double click on listview) is working OK.

xuuhaoo commented 4 months ago

hi all,

I have 3 real devices

  • samsung S6
  • samsung J5
  • google pixel 4

using application v1.5

@skylot only on J5 was able to run debugger, on other no processes appear 2024-05-17_125320

on S6/Pixel4 using

adb shell ps

success lists the processes

J5

the breakpoint you mentioning

set breakpoint by clicking on the space before line numbers

here doing this (see line numbers) without any indicator has BP, and actually works! 2024-05-17_125335

the Launch Application is not working here on android device stuck to 'Waiting for Debugger' dialog but attach to process (double click on listview) is working OK.

Maybe you should try as following step:

image