[mono-android] Debugging on device not working

Chris Erickson chris at cartopac.com
Mon Mar 28 07:54:28 EDT 2011


You need to be on a shared wireless connection,

http://mono-android.net/Documentation/Guides/Debug_on_Device

From: Bartosz Skalski <bartosz.skalski at gmail.com<mailto:bartosz.skalski at gmail.com>>
Reply-To: "monodroid at lists.ximian.com<mailto:monodroid at lists.ximian.com>" <monodroid at lists.ximian.com<mailto:monodroid at lists.ximian.com>>
Date: Mon, 28 Mar 2011 07:03:15 -0400
To: "monodroid at lists.ximian.com<mailto:monodroid at lists.ximian.com>" <monodroid at lists.ximian.com<mailto:monodroid at lists.ximian.com>>
Subject: [mono-android] Debugging on device not working

I' m new to both android and mono development, so probably I'm doing something wrong, but I can't get the debugger to work on an LG GT540 phone. I tried it on the simple automatically generated application and it runs when I'm not trying to debug it, but when I do, it exits almost instantly. PC is definitely receiving network packets form the phone so the connection seems to be OK. Log looks like this:

D/AndroidRuntime( 2852):
D/AndroidRuntime( 2852): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 2852): CheckJNI is OFF
D/dalvikvm( 2852): Precise GC configured ON
D/AndroidRuntime( 2852): --- registering native application1.Activity1 }
D/AndroidRuntime( 2852): Shutting down VMfunctions ---
I/ActivityManager( 1285): Starting activity: Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=MonoAndroidApplication1.MonoAndroidApplication1/monoandroid
D/dalvikvm( 2852): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 2852): DestroyJavaVM shutting VM down
D/dalvikvm( 2852): HeapWorker thread shutting down
D/dalvikvm( 2852): HeapWorker thread has shut down
D/jdwp    ( 2852): JDWP shutting down net...
I/jdwp    ( 2852): adbd disconnected
D/dalvikvm( 2852): VM cleaning up
I/ActivityManager( 1285): Start proc MonoAndroidApplication1.MonoAndroidApplication1 for activity MonoAndroidApplication1.MonoAndroidApplication1/monoandroidapplication1.Activity1: pid=2860 uid=10075 gids={1015, 3003}
D/dalvikvm( 2852): LinearAlloc 0x0 used 695860 of 5242880 (13%)
I/dalvikvm( 2860): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38)
I/dalvikvm( 2860): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=98)
I/ActivityThread( 2860): Publishing provider MonoAndroidApplication1.MonoAndroidApplication1.__mono_init__: mono.MonoRuntimeProvider
D/dalvikvm( 2860): Trying to load lib /data/data/MonoAndroidApplication1.MonoAndroidApplication1/lib/libmonodroid.so 0x2fba4d30
D/dalvikvm( 2860): Added shared lib /data/data/MonoAndroidApplication1.MonoAndroidApplication1/lib/libmonodroid.so 0x2fba4d30
D/dalvikvm( 2860): +++ not scanning '/system/lib/libwebcore.so' for 'init' (wrong CL)
D/dalvikvm( 2860): +++ not scanning '/system/lib/libmedia_jni.so' for 'init' (wrong CL)
D/dalvikvm( 2860): +++ not scanning '/system/lib/libexif.so' for 'init' (wrong CL)
I/MonoDroid-Debugger( 2860): Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,address=192.168.1.32:49980<http://192.168.1.32:49980>,embedding=1
I/ActivityManager( 1285): Process MonoAndroidApplication1.MonoAndroidApplication1 (pid 2860) has died.
I/UsageStats( 1285): Unexpected resume of com.lge.launcher while already resumed in MonoAndroidApplication1.MonoAndroidApplication1
I/Flex    ( 1373): getString FLEX_OPERATOR_CODE PLUS
D/Zygote  ( 1134): Process 2860 terminated by signal (11)
W/InputManagerService( 1285): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy at 2fd6d458

Everything works fine on the emulator. I'm using Window 7 Ultimate and VS 2010, and the phone is LG GT540 with android 2.1 without a SIM card. Does the debugger need Internet connection or just local one will do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110328/b475a7f6/attachment-0001.html 


More information about the Monodroid mailing list