Skip to content

Var-dumper; html format with live or hot reloading #30280

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

Closed
iliyaZelenko opened this issue Feb 17, 2019 · 8 comments
Closed

Var-dumper; html format with live or hot reloading #30280

iliyaZelenko opened this issue Feb 17, 2019 · 8 comments

Comments

@iliyaZelenko
Copy link

Description
I use symfony/var-dumper with dump server and with html format, I am wondering if there is a way to watch this html file online, so as not to reload the page (live / hot reloading). Is there a ready-made solution in a Symfony?

Example
For example, I need to show debug information when requesting to the REST API or when I execute some console command.

Do you think it makes sense to debug in this way?

@ismail1432
Copy link
Contributor

I don't think Symfony provides this functionality, you can take a lokk at https://xdebug.org/

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Feb 24, 2019

The server:dump command could listen on some port and write HTML dumps live when a browser connects there. That's a lot of work though I fear. Because of that, I'm not sure it should be provided in core. Maybe a third-party bundle could provide that if anyone wants to give it a try. Of course, a PR on Symfony would always be considered also if you don't agree with this plan.

@iliyaZelenko
Copy link
Author

@nicolas-grekas @ismail1432 Hi, thanks for the replies. I worked all this week on resolving this issue and created my github package in which this feature is implemented, it complements the server: dump 👍 .

Here's a video of how this works: https://www.youtube.com/watch?v=OERq-XUUxZQ

I think it can help many developers. I would be very grateful if you post a link to this package somewhere in the documentation so that people will find a solution. This package took me a lot of time and I would like it to help not only me.

Package: https://github.com/iliyaZelenko/symfony-var-dumper-browser

@carsonbot
Copy link

Thank you for this issue.
There has not been a lot of activity here for a while. Has this been resolved?

@iliyaZelenko
Copy link
Author

I believe that my work will be useful to someone.

@carsonbot carsonbot removed the Stalled label Jan 28, 2021
@carsonbot
Copy link

Thank you for this issue.
There has not been a lot of activity here for a while. Has this been resolved?

@carsonbot
Copy link

Friendly reminder that this issue exists. If I don't hear anything I'll close this.

@carsonbot
Copy link

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

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

5 participants