ad4m icon indicating copy to clipboard operation
ad4m copied to clipboard

PDiff-Sync manually triggered graph debug output

Open lucksus opened this issue 2 years ago • 0 comments

What is really valuable information when debugging anything Neighbourhood, LinkLanguage and Holochain related is the diff graph in Perspective-diff-sync DHTs. But logging it automatically on every call bloats the log way too much.

It would be really great to have a mechanism to retrieve the graph (in dot-graph format) when needed.

An idea would be:

  • adding a debug(): string function to the LinksAdapter interface
  • implementing that function inside PDiff-sync to return the current graph
  • adding a function to the GraphQL interface (and Ad4mClient): ad4m.neighbourhoods.debug(pID)
  • adding a button to the Launcher (in expert mode - on neighbourhoods) to trigger this new function and display the graph (in text format, and if easy also rendered..)

lucksus avatar Jan 09 '23 11:01 lucksus