Skip to content
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

Re-add debug button in AJAX errors #1687

Open
jordanjay29 opened this issue Dec 7, 2018 · 5 comments

Comments

Projects
None yet
6 participants
@jordanjay29
Copy link
Member

commented Dec 7, 2018

Removed in 64686ef for Beta 8.

However, this is a much easier method of debugging for support requests, and does not force users to learn a new UI (web/dev tools in browser) or parse which errors in log files are relevant immediately.

I suggest restoring it for future versions.

@tobyzerner tobyzerner added this to the 0.1.0-beta.9 milestone Dec 7, 2018

@franzliedke

This comment has been minimized.

Copy link
Member

commented Dec 8, 2018

We discussed this and decided to also add the error message to the console output, to have them persisted when the modal is gone.

@tobyzerner tobyzerner changed the title Beta 8 removes debug link in errors Re-add debug button in AJAX errors Dec 8, 2018

@MichaelBelgium

This comment has been minimized.

Copy link

commented Dec 8, 2018

I've always used that button to see my var_dump's , but now there's no way to see it. Althought It did show plain html code, maybe let it support html too? Or there could be another way possibly.

@datitisev

This comment has been minimized.

Copy link
Member

commented Dec 8, 2018

@MichaelBelgium Instead of using var_dump, use Flarum's logger with app('log'). You can emit debug messages with app('log')->debug(...), info with app('log')->info(...), etc...
You can find those log files in storage/logs

@MichaelBelgium

This comment has been minimized.

Copy link

commented Dec 9, 2018

@datitisev ooh great didn't know about that!

@luceos

This comment has been minimized.

Copy link
Member

commented Jul 12, 2019

maybe promote issues like these on a dev diary: https://discuss.flarum.org/d/20605-dev-diary-beta-10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.