barx Well-Known Member Licensed User Longtime User Mar 24, 2012 #1 Hi, Ihave recently started playing with service modules and need to debug a little problem I have. So, I poppped the ide into debug mode set some breakpoints and compiled. It stops at first breakpoint for several seconds and then just whizzes on by the rest. Done a search on here and according to this page this is expected behaviour within a service. Is this dur to how android uses services. Is there anything that can be done to help debugging as the actual debug tool doesn't help here. Not a complaint by the way, more a plea for hints & tips
Hi, Ihave recently started playing with service modules and need to debug a little problem I have. So, I poppped the ide into debug mode set some breakpoints and compiled. It stops at first breakpoint for several seconds and then just whizzes on by the rest. Done a search on here and according to this page this is expected behaviour within a service. Is this dur to how android uses services. Is there anything that can be done to help debugging as the actual debug tool doesn't help here. Not a complaint by the way, more a plea for hints & tips
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2012 #2 Service_Create and Service_Start must complete in 20 seconds or Android kills the application. Therefore the debugger continues automatically after several seconds in these subs. Upvote 0
Service_Create and Service_Start must complete in 20 seconds or Android kills the application. Therefore the debugger continues automatically after several seconds in these subs.
barx Well-Known Member Licensed User Longtime User Mar 24, 2012 #3 I see, thought it would be something like that. so what would be a workaround? maybe adding lots of 'logging' to show what's going off. The brief pause doesn't give enough time to see what's happening. Cheers Erel Upvote 0
I see, thought it would be something like that. so what would be a workaround? maybe adding lots of 'logging' to show what's going off. The brief pause doesn't give enough time to see what's happening. Cheers Erel
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2012 #4 Yes. You should use Log instead. Upvote 0
barx Well-Known Member Licensed User Longtime User Mar 25, 2012 #5 Cheers, took a little longer but got sorted with the logging... Upvote 0