mac-cain13 / xdebug-helper-for-chrome

Easily activate PHP debugging, profiling and tracing with this Xdebug Chrome extension
https://chrome.google.com/webstore/detail/eadndfjplgieldjbigjakmdgkmoaaaoc
307 stars 97 forks source link

Debug only ajax requests (xhr) #39

Closed kirugan closed 9 years ago

kirugan commented 10 years ago

What a nice feature would be if we can debug only xhr requests. Currently i have a web project where a lot of elements start loading after layout loaded. How i debug it now:

1) Set breakpoint or 'debugger;' statement inside code 2) Waiting when xhr breakpoint start debugger 3) Turn on debug mode in xdebug helper 4) Debug in my IDE

By the way breakpoint must be set before xhr actually send data!

This feature can be implemented with prototype property of xhr (setting callback before xhr starts)

mac-cain13 commented 10 years ago

Nice idea! Thanks for sharing.

I think it's interesting to look into this and check if we can develop something like it. The UI would be the most challenging I think, I want to keep it very clear what you're doing and we should not confuse users about what requests they are debugging.

mac-cain13 commented 9 years ago

Like this idea, but don't have the time/need to implement this myself. So feel free to implement this and submit a PR, will be happy to merge that in!