On Nov 15, 2012, at 4:30 AM, Bjorn Coltof <bjorn.col...@gmail.com> wrote:
> Does anyone know how I can debug a service that is hosted in a separate 
> process?

No; unfortunately the debugger is only capable of debugging one process at a 
time. (Please file an enhancement request.)

> If not, is there a way I can disable the debugger to even attempt to start 
> for the service?

The debugger arguments are stored as an Android system property 
("debug.mono.extra") which is system wide.

However, there are ways you can exploit this to make things work:

1. The debug.mono.extra system property contains a "timeout" value, which is 
~5-10s after when you started debugging. If your Activity were to wait ~15s 
before starting the Service, the Service process startup shouldn't attempt to 
connect to the debugger, so things should work.

2. Your Activity could explicitly clear the debug.mono.extra system property, 
e.g. via executing `setprop debug.mono.extra ''` (though executing this process 
may require Android permissions; I'm not entirely sure).

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to