buggregator / server

Buggregator is a lightweight, standalone server that offers a range of debugging features for PHP applications.
https://buggregator.dev/
Other
584 stars 20 forks source link

long var dump event gets truncated resulting in an empty payload when loading so the event is not displayed #218

Open hanoii opened 2 weeks ago

hanoii commented 2 weeks ago

It took me a lot of time to figure this out, although simple I thought the issue might be on my docker compose setup for some reason as I was testing a paralell instance and I saw the events persisting.

What I found is that when the event is really big, it is fully displayed browser, but once refresh the event is gone. I checked on the dotl database and the event is there, only the payload is truncated so the json is now invalid.

See https://pastebin.com/E1jTVS8k

That's the full html I get when I first see the event. Even just output that as a string performs the same behavior.

I saw the readme on VAR_DUMPER_PREVIEW_MAX_DEPTH but my understanding is that will help with the display, not the storing. I can perform a similar limit on my app, but if there is a hard set limit, I would expect some kind of either documentation, or maybe an error on the event page or maybe storing the payload with an error json or something.

If this is not the expected behavior, then this is a bug.

Using the latest version.

hanoii commented 2 weeks ago

Side note, I forked the project and attempted to run it to see if I could debug this myself but it wasn't as easy as I would have hoped. Spent a few hours but had a number of odd things I blindly try things out until the issue sorted but I never got to launching a proper server.

I did read all of the contrib notes in the documentation

Things I found (only to remind myself):

Maybe having something like ddev or some other dockerized kickstart for development can help with contributions or at least a more up to date notes or recipes into how to run this locally or steps needed to contibute to the project.