Try logcat, loginfo.

2011/4/22 Pandi <[email protected]>

> Thanks Kostya and Oscar Marques. I want to get stack trace at run time
> from the code.
>
> I want to use strace in my code. How? any samples???
>
>
>
> On Apr 22, 4:57 pm, Kostya Vasilyev <[email protected]> wrote:
> > strace is for native code.
> >
> > For Java code, there are useful functions in java.lang.Thread:
> >
> > http://developer.android.com/reference/java/lang/Thread.html
> >
> > static void dumpStack()
> >
> > static Map<Thread, StackTraceElement[]> getAllStackTraces()
> >
> > StackTraceElement[] getStackTrace()
> >
> > -- Kostya
> >
> > 22.04.2011 15:49, Oscar Marques ?????:
> >
> >
> >
> > > You can use strace compiled to arm.
> > > I tried and it works.
> >
> > > 2011/4/22 Pandi <[email protected] <mailto:
> [email protected]>>
> >
> > >     It is function trace/stack trace.
> > >     Which will give who is calling what?
> >
> > >     On Apr 22, 3:51 pm, Kumar Bibek <[email protected]
> > >     <mailto:[email protected]>> wrote:
> > >     > WHat's a Back Trace?
> >
> > >     > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com
> > >     <http://www.kbeanie.com>
> >
> > >     > On Fri, Apr 22, 2011 at 4:12 PM, Pandi <[email protected]
> > >     <mailto:[email protected]>> wrote:
> > >     > > Hi, How to get back trace in android??
> >
> > >     > > --
> > >     > > You received this message because you are subscribed to the
> Google
> > >     > > Groups "Android Developers" group.
> > >     > > To post to this group, send email to
> > >     [email protected]
> > >     <mailto:[email protected]>
> > >     > > To unsubscribe from this group, send email to
> > >     > > [email protected]
> > >     <mailto:android-developers%[email protected]>
> > >     > > For more options, visit this group at
> > >     > >http://groups.google.com/group/android-developers?hl=en
> >
> > >     --
> > >     You received this message because you are subscribed to the Google
> > >     Groups "Android Developers" group.
> > >     To post to this group, send email to
> > >     [email protected]
> > >     <mailto:[email protected]>
> > >     To unsubscribe from this group, send email to
> > >     [email protected]
> > >     <mailto:android-developers%[email protected]>
> > >     For more options, visit this group at
> > >    http://groups.google.com/group/android-developers?hl=en
> >
> > > --
> > > Oscar Marques
> > > [email protected] <mailto:[email protected]>
> > >http://www.dunkelheit.com.br
> > > Twitter: @f117usbr
> > > +55 21 9293-9343
> >
> > > ------------------------------------
> > > Participe do I Hack'n Rio <http://hacknrio.org/>
> > > ------------------------------------
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
> >
> > --
> > Kostya Vasilyev --http://kmansoft.wordpress.com
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Oscar Marques
[email protected]
http://www.dunkelheit.com.br
Twitter: @f117usbr
+55 21 9293-9343

------------------------------------
Participe do I Hack'n Rio <http://hacknrio.org/>
------------------------------------

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to