Closed montogeek closed 1 year ago
After debugging a bit I found this:
Config is correct but still check_profiler_running
returns an error.
Hi @montogeek! Did you follow the instructions from the README or from the package docs? Please use the published package docs because the main
branch has diverged in preparation for the next release.
For clarity, these are the most important steps, but please reference the full instructions:
# lib/my_app_web/telemetry.ex
children = [
{PhoenixProfiler, name: MyAppWeb.Profiler},
# :telemetry_poller, etc.
]
# config/dev.exs
config :my_app, MyAppWeb.Endpoint,
phoenix_profiler: [server: MyAppWeb.Profiler]
code_reloading?
block on your Endpoint module:# lib/my_app_web/endpoint.ex
if code_reloading? do
# plugs...
plug PhoenixProfiler
end
OH yes, I manage to do if after adding the :server
, hope you can release it soon.
I am used to read READMEs on GitHub instead of the published version :D
What are you plans long term with the plug? I thought I would get something like Laravel Debugbar, but I couldn't see a way to see assigns
for example, would like to contribute :)
I am glad to read it is working for you now :)
My long-term plans are similar, in fact my inspiration was exactly the Symfony Web Debug Toolbar. Please feel free to open issues with ideas– for assigns specifically I am currently working on something that will mimic dump-based debugging, so definitely stay tuned for that!
Hi!
I am wondering if this library is compatible with:
I have followed the guide and always get this error:
attempted to enable profiling but no profiler is configured on the endpoint