WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

debug mode

Version: 5.0.10
Status: already implimented
printPrint


debug mode
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 10/03/08 - 07:36 AM:
quote post
#1
Hi Paul,

When I found the errors in http://www.webmastersite.net/forums/comments.php?id=8442&page=last#lastpost, some of the errors came up only because I set the debug info to be shown to the admin, and then while the redirect pages were showing these errors I had to quickly select all the text on the page and copy paste it into a text document, just so I can go through it. I know that I could have set the redirect time to a longer period, but to keep changing that just for these debug seconds, is a hassle.

Also, I have a big site with a ton of queries. so even if I copy the debug info into a text file, it is not possible to find an error. I have to do a text search for the word 'error'. smiling face that's how I found one of the errors in the place where I didn't think I'd have one (the site showed no problems, but the error was present).

So my feature request is: a debug mode that ignores redirects and ALWAYS shows the debug info and IF it finds the word 'error' in the output, it stores that complete DEBUG info somewhere in the admin panel. Or just plain and simple ignore everything and just show the debug info and highlight the word 'error' on it.

Or better yet, it's a mode that if turned on, runs in the background and doesn't show the debug info onscreen, but runs it and stores the debug info IF it finds an error, then notifies you in the admin panel.

Thanks
David
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 10/06/08 - 11:28 PM:
quote post
#2
Or better yet, it's a mode that if turned on, runs in the background and doesn't show the debug info onscreen, but runs it and stores the debug info IF it finds an error

That's what it does... except for a few non-breaking mysql warnings that somehow don't trigger a PHP-level error get missed. And it's at the location, not the admin panel (or if suppression is on, it sends an email).

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 10/06/08 - 11:34 PM:
quote post
#3
Hmmm... so 'suppression' does that? Cool.

You know why I didn't know this? It's because there is no single, comprehensive place on your site to read up on all the things released in updates. The single line entries in the updates, listing what was included, are good if one of those issues was mine on the forum and I know what it relates to. Otherwise, sometimes it's hard to know what some new things/features are and what they do, and how to use them. smiling face

Thanks
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 10/06/08 - 11:43 PM:
quote post
#4
2 things:

1. this is the manual for the Debug section:
"Suppress all errors for non-admins - This is the ultimate anti-debug. It prevents all errors, even fatal errors, from being displayed... the page will simply be rendered as far as is possible without php complaining about not being able to do some of the things it was told to do. When logged in as admin you'll still see errors as normal, but this will prevent you from noticing any errors that only show up as a guest."

That doesn't say anything about sending the admin an email about the errors, or showing them somewhere, other than at the exact page you are on as an admin and see the error.

2. what are Strict modes in the debug level?

Thanks
David
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 10/09/08 - 12:50 AM:
quote post
#5
Edited kb.

The strict modes are really just for me, ignore them.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.