![]() |
Debug variable in URL
open your global.php and go to the end of it....
Insert: if ($_REQUEST['debug'] > 0) { $debug = 1; } Now just add &debug=1 at the end of any URL to be able to see those debugging stats If anybody else did this already just kill this thread... Just wanted to add this kind of info to my articles page and came up with this code. |
Ah... excellent ;)
One change that I can think of: PHP Code:
|
Quote:
|
Quote:
|
Quote:
|
If you want only admins to be able to see it, I suggest you change
This part: if ($_REQUEST['debug'] > 0) { to something hidden like if ($_REQUEST['zebrapants'] > 0) { then in the URL instead of using &debug=1 use &zebrapants=1 |
Quote:
|
Screenshot of what it would look like when you debug it?
|
it's the VB built in Debug screen which tells you time to create page, what templates used, queries.
|
Hello,
The code worked as suspected,but then it caused an error claiming that header can't be sent,they already were. I am running VB3 gold, all the newest mysql,apache,etc. I debugged,and returned to my normal forum. All was fine until I tried to read a post. Thats when the errors jumped. Naturally,I removed the code from my global and everything was fine again. (Yes,I placed the code where it states to do so.) |
All times are GMT. The time now is 10:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|