Mobile/Fennec/Android: Difference between revisions

Line 468: Line 468:
After staring fennec with jimdb the following seems to work at least a little.
After staring fennec with jimdb the following seems to work at least a little.


   ~/src/gdb-root/moz-gdb$ adb jdwp
   $ adb jdwp
   5543
   5543
   ~/src/gdb-root/moz-gdb$ adb -d forward tcp:8686 jdwp:5543
   $ adb -d forward tcp:8686 jdwp:5543
   ~/src/gdb-root/moz-gdb$ jdb -J-Duser.home=. -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8686  -sourcepath ~/mozilla/maple/mobile/android/base/
   $ jdb -J-Duser.home=. -connect com.sun.jdi.SocketAttach:hostname=localhost,port=8686  -sourcepath ~/mozilla/maple/mobile/android/base/
 
You can also use eclipse for debugging in a similar way by setting up for debuggin "Remote Java application"


=== Arguments and Environment Variables ===
=== Arguments and Environment Variables ===
Confirmed users
523

edits