Determining debug status
I've always wondered, is there a way to determine within a script whether or not the script is being run in debug mode?
|
http://www.amxmodx.org/funcwiki.php?go=func&id=225
Code:
Maybe? |
yup, that's right. or getting the plugin flags.
HINT: if you need to know whether your plugin is in debug mode, you're doing something wrong ;) |
Thanks! I'd just rather output debug messages and execute test queries only when in debug mode. I know I could do that with a simple little preprocessor directive but now that I know how to do it this way, :D
|
Code:
|
| All times are GMT -4. The time now is 16:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.