Enable VB Debug Mode without hacking config.php
This modification is in the archives.
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. Download No files for download. |
Similar Mods
Administrative and Maintenance Tools Enable/Disable Debug Mode | vBulletin 3.7 Add-ons |