![]() |
Enable VB Debug Mode without hacking config.php
Summary
As just about everybody knows you can enabled vBulletin debug mode by placing the following: Code:
$config['Misc']['debug'] = true;
The following hack go some way towards solving both of these drawbacks. In summary you make a single one time edit to the config.php file, once done you can enabled/disable debug mode via URL querystring arguments. How do I use this? Once installed, if you want to see debug output you simple add the following to the end of the URL you are viewing: Code:
debug=XXX
Installation summary Installation Time: < 1 minute VB File Edits: 1 OK, so what do I have to do?
Once uploaded you can now view debug output by adding the querystring arguments as described above to the URL you are viewing. No more config changes and debug info is only accessible to those who know you secret "XXX" key. Gotchas!! This does not work when submitting data, so for example if you enter debug mode for post reply, when you click the button and submit the fact that you were in debug mode on the submission page is not carried across, and as you cannot edit the post URL the resulting page does not display debug output. I did attempt to rectify this by added a check value into "$_SESSION", however it would seem that VB's internal session handling does not allow this to be carried through. So if anybody has any suggestions for this issue, feel free to post them. |
<a href="https://vborg.vbsupport.ru/showthread.php?t=176700" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=176700</a>
|
Quote:
I will comment that I don't think it's prudent to open up debug mode to anyone browsing your forums by allowing anyone to turn it on via the URL. |
All times are GMT. The time now is 07:30 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:
|