• Resolved toonbon

    (@toonbon)


    I’m new to Query Monitor and it seems that there should be a way to start and stop the trace. For example, if I’m on a page where I can select a product to buy I’d like to know what happens in the code when I press that BUY button: what plugins are called, what hooks fire, what DB calls are made, etc. The site will probably take me to a page with a form with credit card info and when I hit SUBMIT and I’d like to know next what happens starting with the SUBMIT click, so I want to clear all the data up to that point and click the button. I’ll expect I’ll go through Woo Commerce, Stripe, etc. I want to see all that.

    Is there a way to set this up or am I not understanding the way you use Query Monitor?

    Thanks for any help.

    https://www.ads-software.com/plugins/query-monitor/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    That’s not currently possible with Query Monitor, but it’s something that’s been on my mind for a long while now. The same thing applies to pages which redirect you to another page.

    QM collects data about what happens during a form submission (a POST request), but as soon as your site redirects to the next page then this information is lost and it starts afresh.

    A long-term goal for QM is to implement persistent logging, which would then enable you to view the data collected during form submissions, but I don’t have an ETA for this yet.

    Thread Starter toonbon

    (@toonbon)

    Ok, but just so I’m clear what is the period over which the data is currently collected, and when is it reset?

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    It’s not persistently collected at all. The data only exists in memory for the lifetime of the current page load (ie. usually less than one second), and is discarded once the page finishes loading.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Start Stop trace control’ is closed to new replies.