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

Debug Console: Link output to states / code / history that generated it #761

Open
3 tasks
franzlst opened this issue Apr 17, 2020 · 1 comment
Open
3 tasks

Comments

@franzlst
Copy link
Member

It would be a convenient feature if you could (double-)click on a log message in the debug console to

  • open the state that triggered it
  • go to the line of code that sent the message
  • open the respective part of the execution history

Originally created by @mjschuster at 2019-07-16 09:00:34+00:00 (moved from RMC internal repository)

@franzlst
Copy link
Member Author

I guess this won't happen in the near future (although I think it would be could).

Nevertheless, I tried to find out, how this could be implemented:

When calling debug, info, etc, one can specify an additional keyword argument extra. Here, a dict can be passed, which in our case could be something like {'state': weakref.ref(state)}. This way, a weak reference to the state would be stored in the LogRecord, where it could be accessed by the LoggingViewer.

Originally created by @franzlst ([email protected]) at 2019-07-16 14:36:21+00:00 (moved from RMC internal repository)

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

No branches or pull requests

1 participant