In a debug effort to understand what the system is doing I would like to use the java debugger conditional breakpoints mechanism to print log messages on specific lines in Android's source code.
How would I do it? I don't exactly know, that's this question all about.
Things I do know:
The Eclipse java debugger has "conditional Breakpoints", i.e., you set a breakpoint in the code and you write a condition. Each time the code reaches the breakpoint line it will stop execution only if the condition you wrote is true
, otherwise it will not stop.
I though that maybe this mechanism can be twisted to print a log message at a specific line in the code instead of stopping the execution. And if it can be done I could be able to track what Android's source code is doing.