Giter Club home page Giter Club logo

Comments (7)

barbushin avatar barbushin commented on July 18, 2024

What do you mean recognize and parse XMLHttpResponses? AJAX requests are handled by php-console like any other requests, so debug data of this requests will be sent to php-console extension as well :)

from php-console.

guice avatar guice commented on July 18, 2024

AJAX requests are handled by php-console like any other requests, so debug data of this requests will be sent to php-console extension as well :)

Oh? It's not doing that for me. Take a look: here's a call to a PHP page done from an HTML page, through AJAX:

screen shot 2014-05-29 at 11 19 48 am

However, the console is empty. It didn't parse the request.

from php-console.

barbushin avatar barbushin commented on July 18, 2024

What is your OS? Is AJAX request domain is the same as tab URL domain?

from php-console.

guice avatar guice commented on July 18, 2024

To answer your questions: OSX, and Yes and No. In my dev environment, yes; in our QA/Prod, no.

However, I just remembered, these aren't ajax calls. I completely forgot the way this script works is the initial call is actually a dynamically added script call. Then a dynamically updated call thereafter. Soooo..there may not be a solution to this. My apologies. :)

from php-console.

barbushin avatar barbushin commented on July 18, 2024

Anyway, I think that this request is going to some another domain. php-console starts listening some domain headers only after this domain url is opened in tab, and when php-console detects php-console-server cookie.

php-console do not listen headers of all domains to prevent CPU usage overhead.

So you can just try to open url of that request in separate tab, and then debug data of AJAX or any other type of request from this domain will start handling until next browser restart.

Please let me know if it helps. May be I'll find some better solution. Thank you.

from php-console.

guice avatar guice commented on July 18, 2024

Makes sense (ps; updated comment because it didn't like the < brackets around script. ha!). That's is how I've been debugging. Just a little more tedious, and was hoping of a better way to handle it.

No matter. Thanks, again! Love the extension. It works excellently!

from php-console.

barbushin avatar barbushin commented on July 18, 2024

Ok, so I added #54 issue to fix this case, you can subscribe/watch it to get notification when it will be closed. I'll implement it soon, when I'll have more free time. Thank you for this feedback! 👍

from php-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.