-
Notifications
You must be signed in to change notification settings - Fork 150
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
Include in other project, return in html area #20
Comments
Hey,
Thanks, I'm glad you like it. I don't quite follow your request; I can see multiple ways to interpret what you are asking, so I'd like to ask if you could explain a little further what it is you are trying to achieve. When an error has occurred, do you want to control where the output is shown, within the page? Currently it just replaces the page with the error HTML, is this what you want to change? Or is the problem to do with integrating PHP Error into your plugin? |
Thanks for the reply and yes, I like the plugin. |
Ok, I'm starting to understand what you want to do with this. However after you after just the error messages, without any HTML formatting, or do you want them with the HTML formatting? i.e. so you can place the HTML output within your own container? |
Great and thanks for understand my cruesome English. |
Ok, at the weekend when I get time, I'll add in a callback which can be called instead of the current display logic. This will just pass in the HTML. Something like: reportError( array(
'on_display' => function( $html ) {
// handle you display here
}
) ); Does that sound ok? I'll also offer other parameters for the rest of the error/exception information, just in case you need it. For example reportError( array(
'on_display' => function( $html, $ex, $message, $file, $line, $stack ) {
// handle you display here
}
) ); However note that when an exception is hit, the page will stop anyway. That isn't me, that's PHP, because the exception is not handled by the user code. |
great and many thanks for your reply and todo! |
Hi Joseph, |
Thanks for your nice project.
I would like to include this in my small debugging plugin for WordPress, its easier to use without coding and also on client sites.
But i inlcude all returns in an html area, for use in tabs and view only, wat is important.
But i dont find not an hint in your documentatino, how it is possible to include this without an direkt echo at start.
maybe you can help me?
If you see on my project, than you find an small example on the
inc/about.php
how works my retur of input and you can also see this on the scrrenshoot inside the repo.https://github.com/bueltge/Debug-Objects
Thanks!
The text was updated successfully, but these errors were encountered: