Live data from Hacker News

RoR Debugbar

debugbar.dev

11–20 of 80 posts

Re: RoR Debugbar

#11
post #2

If anyone is interested in this sort of thing I started a proposal with a list of ideas and features around a Rails debug toolbar at: https://discuss.rubyonrails.org/t/proposal-a-fully-featured-... NOTE: I'm not the author of this tool but they did end up replying in that thread. I didn't even know their tool existed until I happened to stumble upon it on Twitter well after my post. It would be neat if something like…

Django Debug Toolbar > Panels > Default built-in panels, Third-party panels, API for third-party panels: https://django-debug-toolbar.readthedocs.io/en/latest/panels...

Firelogger.py//middleware.py: https://github.com/binaryage/firelogger.py/blob/master/firep...

Distributed tracing w/ OpenTelemetry, Jaeger; Metrics with ~JMX

W3C Trace Context v1: https://www.w3.org/TR/trace-context-1/#overview

Re: RoR Debugbar

#13
post #5

Good idea but it seems that every developer of a project is going to have to use it, because it's a gem and it must be included in a layout. It's possible to do that conditionally based on an environment variable, but we're still adding some code to the Rails app. A better way would be to turn it into an extension to developer tools, like the ones for React and Vue. I've got them into my Firefox.

Perhaps a future improvement is like how rack-mini-profiler does it, and just injects itself

Re: RoR Debugbar

#14
post #4

Symfony’s dev toolbar has got to be one of the best. https://symfony.com/doc/current/profiler.html Always miss this in my RoR projects.

There's peek[1], albeit not exactly the same thing [1] - https://github.com/peek/peek

I didn’t see a demo, only the closed bar with some timing stuff. Does it open to do more?

Re: RoR Debugbar

#15
post #4

Symfony’s dev toolbar has got to be one of the best. https://symfony.com/doc/current/profiler.html Always miss this in my RoR projects.

There's peek[1], albeit not exactly the same thing [1] - https://github.com/peek/peek

Last commit was 5 years ago. I feel like this is 80% of the rails ecosystem nowadays.

Re: RoR Debugbar

#16

Hi I’m the maker of the debugbar. If you have any feedback or question, just let me know. Thanks puuush for posting it.

Hey Julien, very nifty!

Can you comment on the inspiration/ similarity with the Laravel Debugbar [1]? I noticed your GH says "Laravel by Night" :)

[1] https://github.com/barryvdh/laravel-debugbar

Re: RoR Debugbar

#18

Earlier quoted context omitted.

How would you be able to implement this functionality only from the frontend without ever adding backend code? You'll always need to expose this info from the backend somehow. Of course with react and vue the data is available since it's already in the frontend.

Yeah you always need a backend part as part of your dev dependencies but currently you also need to add a little snippet in your production view code. It could be a browser extension like Rails panel + meta_request but I think it’s also good that anybody working on the codebase always get the debugbar, regardless of their browser or setup.

The downside is that if the project decides not to have that in the code, nobody gets it. Example: I suggest to a customer to use it. They decide they don't want it, I can't use it too.

Re: RoR Debugbar

#19
post #18

Earlier quoted context omitted.

Yeah you always need a backend part as part of your dev dependencies but currently you also need to add a little snippet in your production view code. It could be a browser extension like Rails panel + meta_request but I think it’s also good that anybody working on the codebase always get the debugbar, regardless of their browser or setup.

The downside is that if the project decides not to have that in the code, nobody gets it. Example: I suggest to a customer to use it. They decide they don't want it, I can't use it too.

There’s no reason you couldn’t just leave it in your own branch of git and not merge it. It’s not that hard.

Re: RoR Debugbar

#20
post #15

Earlier quoted context omitted.

There's peek[1], albeit not exactly the same thing [1] - https://github.com/peek/peek

Last commit was 5 years ago. I feel like this is 80% of the rails ecosystem nowadays.

I definitely get that feeling as well. 80% ghost town
Post reply on HN