Wire up enough of the pieces that we can connect ddms or jdb.
(And die with an UNIMPLEMENTED as soon as they connect, of course.)
Change-Id: I9abb25d581384361c215b3cd96b8278c751e79ea
diff --git a/test/etc/push-and-run-test-jar b/test/etc/push-and-run-test-jar
index ae1474a..53d7a76 100755
--- a/test/etc/push-and-run-test-jar
+++ b/test/etc/push-and-run-test-jar
@@ -98,7 +98,15 @@
fi
if [ "$DEBUG" = "y" ]; then
+ # This is for ddms:
DEX_DEBUG="-agentlib:jdwp=transport=dt_android_adb,server=y,suspend=y"
+ # Connect by running 'ddms'.
+
+ # This is for jdb:
+ #DEX_DEBUG="-agentlib:jdwp=transport=dt_socket,address=12345,server=y,suspend=y"
+ # Connect thus:
+ # adb forward tcp:12345 tcp:12345
+ # jdb -attach localhost:12345
fi
if [ "$ZYGOTE" = "y" ]; then