I am looking for a way to get a stack trace when I am at a certain breakpoint. Is this possible? Ideally without having to crash the application and modifying the code. I tried playing with the Android debugger but couldn’t find anything very helpful.
The reason is that sometimes I am not certain how the application arrived at a point in code, so I am open to other suggestions that would help me trace the method calls.
This can be done in Java:
In Eclipse, if you create an “expression” with that code in the
Expressionsview ofDebugperspective, it will print current stack trace (i.e. the stacktrace of the breakpoint your code stopped on) in theConsoleview.