Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging tools. #39

Closed
back2dos opened this issue Aug 20, 2020 · 3 comments
Closed

Debugging tools. #39

back2dos opened this issue Aug 20, 2020 · 3 comments

Comments

@back2dos
Copy link
Member

Some helpers to debug observables would be good, in particular getting the dependency graphs of auto-observables.

@Neverbirth
Copy link
Contributor

Knowing which observable triggered an update when there are multiple observables involved would be really handy for troubleshooting in complex scenarios.

back2dos added a commit that referenced this issue Aug 31, 2020
back2dos added a commit that referenced this issue Sep 3, 2020
back2dos added a commit that referenced this issue Sep 4, 2020
back2dos added a commit that referenced this issue Oct 3, 2020
@back2dos
Copy link
Member Author

back2dos commented Oct 3, 2020

This is largely done as far as tink_state is concerned.

Compile with -D tink_state.debug and use tink.state.debug.Logger to track anything you may be interested in.

@back2dos back2dos closed this as completed Oct 3, 2020
@back2dos
Copy link
Member Author

back2dos commented Oct 3, 2020

Also worth mentioning: with -D tink_state.debug you can call someObservable.dependencyTree() to get its dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants