-2

I Android you can log things with:

Log.i("Log_Tag","Message");

I know this prints message to the logcat console.

I also noticed it is possible to type into the logcat console.

So I was wondering is there a way to program "debugging" commands so that if you type something in the logcat console it will run a method in your program.

Foobar
  • 7,458
  • 16
  • 81
  • 161

1 Answers1

0

I don´t think that this is possible. You can add breakpoints and run your project in debug. When you stop on a breakpoint you can view your variables or use the calculator symbol (Evaluate Expression - alt + F8) to run a method or something else.

Adam
  • 302
  • 1
  • 3
  • 8