doesn’t Phoenix have a nice debug toolbar that shows what is going on in a nice frontend gui?
I am missing a good way to see exactkly what happened, which controllers where called, which database queries executed, ebnvironment variables, etc, the usual stuff you need for debugging. I can see lots of that stuff printed out in the console where I have a phoenix app running, but, well, that is not rally comfortable.
am i missing anything? Is there a phoenix-debug-toobar (could not find anything)?
Never seen one and don’t think it’s ever existed Relatively easy to make your own, most information is kept in conn struct, but not sure where you can find information of executed queries for a particular connection call… I hope somebody can shed light on this topic here…
conn is quite informative, but e.g. the number of SQL queries is very important to see while development, this is not in conn and I do not understand (yet) ecto good enough to hack this together.
Also it would be good to have an officially supported infrastructure for this that could be extended, not havinig to maintain own snippets for each user.
ex_debug_toolbar currently tracks queries made from request process and preloads that run in separate processes (this requires master branch of elixir last time I checked). It can link preloads to request because they pass around caller_pid, which you can also do by passing it to Repo calls as an option. It’s not as convenient and we’re open to suggestions on how to deal with queries in separate processes.