-
Notifications
You must be signed in to change notification settings - Fork 42
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
How to handle ajax actions? #18
Comments
We are investigating on it to find a good way to debug it. Do you have any suggestion about that? |
Maybe using Symfony's approach: write serialized data + csv index with possibility show info about last N requests. Plus overwrite xmlhttprequest http://symfony.com/blog/new-in-symfony-2-6-ajax-requests-in-the-web-debug-toolbar |
Could be an option. Thank you for your suggestion. We are also investigating in using payloads inside the response headers. |
Please do not make response headers too big, it may cause hard to debug errors on webserver/browser side. See Seldaek/monolog#172 |
That was exactly our concern! This is why we stopped it for a while, but your suggestion could be a better option. |
In https://github.com/maximebf/php-debugbar we use different approaches:
It then provides a dropdown to switch between requests. Eg. a save action will have 2 items, the POST request and the redirected page. So you can always see what happened on the POST (which is mostly more interesting). And ajax requests will trigger a new item in the dropdown. |
@barryvdh , seems a good approach. |
For example we have some ajax action which return json/xml. How it possible to profile it?
The text was updated successfully, but these errors were encountered: