smali icon indicating copy to clipboard operation
smali copied to clipboard

Can't set breakpoint on latest Intellij IDEA

Open infahash opened this issue 5 years ago • 5 comments

Adding breakpoint for smali file is not working on Intellij IDEA 2019.3

infahash avatar Jan 27 '20 09:01 infahash

you should regist File Types to associate *.smali file in idea

File -> Settings -> Editor -> File Types

see [link]https://medium.com/@ghxst.dev/static-analysis-and-debugging-on-android-using-smalidea-jdwp-and-adb-b073e6b9ae48

youngerier avatar Jul 10 '20 04:07 youngerier

Thanks. I'll check

infahash avatar Jul 10 '20 20:07 infahash

@infahash @youngerier Test passed android studio 4.0.1

lpcdma avatar Aug 03 '20 07:08 lpcdma

Hi, I faced same issue, breakpoints not working. I used baksmali-2.4.0.jar d someapp.apk , the someapp.apk is multidex and I noticed backsmali just translated first dex file to smali. However after that I opened the translated parts using Smalidea v0.05 and Android studio v3.5.3 and start debugging, but breakpoints didn't work. 1)Why adding breakpoints for that part of code doesn't work? 2)How can I do backsmali for all the dex files of a mutidex app?

its-mx avatar Oct 21 '20 18:10 its-mx

Hi, I faced same issue, breakpoints not working. I used baksmali-2.4.0.jar d someapp.apk , the someapp.apk is multidex and I noticed backsmali just translated first dex file to smali. However after that I opened the translated parts using Smalidea v0.05 and Android studio v3.5.3 and start debugging, but breakpoints didn't work. 1)Why adding breakpoints for that part of code doesn't work? 2)How can I do backsmali for all the dex files of a mutidex app?

Ok I found the answers :D I will share for anyone else with same issue: The issue reason was maybe because I just tried to debug 1 dex file of the app. I thought it's not the case because each dex has complete functionality, but it's seems my thought is wrong (I dunno why, somebody please explain). Anyway after extract all dex files from app and baksmaling all of them separately in one destination file (like java -jar baksmali-2.4.0.jar d classes(X) -o desPath) and start debugging again, all went well this time.

its-mx avatar Oct 21 '20 18:10 its-mx