pluto icon indicating copy to clipboard operation
pluto copied to clipboard

Activate and deactivate the debugging (and notification) on demand

Open RoRoche opened this issue 3 years ago • 4 comments

I'd like to programmatically (de)activate the debugging (and notification), for example by turning a switch "debug mode" in settings.

As there is a method Pluto.initialize(context), it could be a Pluto.terminate(context) one. Personally, I prefer the "start/stop" tuple but whatever.

Maybe it could be painful for the related classes (OkHttp's interceptor, ANRListener), to stop the debugging. What about an event mechanism?

RoRoche avatar Sep 03 '21 16:09 RoRoche

hi @RoRoche, can you share your use case in a bit more detail, it will help to solutionize this.

srtvprateek avatar Sep 21 '21 16:09 srtvprateek

I want to give debug access to only advanced users. It would be an option in a specific settings menu, accessible with a password. So it would be a checkbox "debug mode" and I'd like to dynamically start/stop Pluto on checkbox' changes.

RoRoche avatar Sep 22 '21 13:09 RoRoche

Stale issue

github-actions[bot] avatar Dec 01 '21 00:12 github-actions[bot]

Stale issue

github-actions[bot] avatar Mar 01 '22 00:03 github-actions[bot]