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

Doesn't work with AJAX only refreshing part of the page #7

Open
MattyDub opened this issue Apr 1, 2014 · 8 comments · May be fixed by recamshak/chrome-django-panel#3
Open

Doesn't work with AJAX only refreshing part of the page #7

MattyDub opened this issue Apr 1, 2014 · 8 comments · May be fixed by recamshak/chrome-django-panel#3

Comments

@MattyDub
Copy link

MattyDub commented Apr 1, 2014

If I have a web app that only refreshes certain parts of the page via AJAX (i.e. and then uses Javascript to update the DOM), those requests don't show up. Is there some way to configure this to enable all requests to be profiled, not just the ones for the "current" URL?

@recamshak
Copy link
Owner

Do they show up inside the Network panel of chrome devkit ? And if so, do they have the 'X-debug-data-url' header set ?

@MattyDub
Copy link
Author

MattyDub commented Apr 3, 2014

Yes they do show up in the Chrome developer tools' Network panel. Yes the response headers include X-debug-data-url, e.g.:

X-debug-data-url:http://127.0.0.1:8000/__debug__/data/1396559117.528137/

@recamshak
Copy link
Owner

I cannot reproduce that on my computer.
Is there any message in the Developer tools' console of the Developer tools itself ?
To actually see that console, first open the Developer tools, then undock it from the browser.
On the undocked window, press Ctrl+i. That should open another Developer tool where you can see the messages from the first developer tools.

@michi88
Copy link

michi88 commented Jul 31, 2014

I'm using this with angular and have the same problem. When browsing the x-debug-data-url I do see the toolbar in the browser. Still helpful but would be nice to see it in the console with the plugin.

@michi88
Copy link

michi88 commented Jul 31, 2014

Btw, I don't see any messages / errors in the Developer tools' console of the Developer tools itself.

michi88 added a commit to michi88/chrome-django-panel that referenced this issue Jul 31, 2014
@michi88
Copy link

michi88 commented Jul 31, 2014

I think I found the problem. The header is all lowercase. recamshak/chrome-django-panel#3 It works for me now.

@michi88
Copy link

michi88 commented Jul 31, 2014

Thanks for making this BTW ;-)

@nsheaps
Copy link

nsheaps commented Jan 7, 2015

Later versions of the Django Debug Toolbar (not the panel) disable it on AJAX requests.

If you are having issues with it, redefine the toolbar's show_toolbar function and configure it to use yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants