Raised This Month: $51 Target: $400
 12% 

[Debug mode] Debug mode not always activating


  
 
 
Thread Tools Display Modes
Author Message
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 09-24-2004 , 05:22   [Debug mode] Debug mode not always activating
#1

Setting amx_debug 2 seems to not work all the time, sometimes I get errors like this in my logs:
L 09/23/2004 - 198:02: [AMXX] Run time error 10 (native) (plugin "miscstats.amxx") - debug not enabled.

But I have amx_debug set to 2.

Sometimes it does show properly and detailed errors are shown like intended but other times it doesn't.

Windows Server with lastest Nightly Build for RC6.
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
BAILOPAN
Join Date: Jan 2004
Old 09-24-2004 , 10:01  
#2

The first map, debug will never be 2.
__________________
egg
BAILOPAN is offline
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 09-24-2004 , 10:20  
#3

Should I just use amx_debug 1 then? Is this a bug or by design?
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
BAILOPAN
Join Date: Jan 2004
Old 09-24-2004 , 12:18  
#4

No, you should add "debug" next to the plugin in plugins.ini like this:
Code:
myplugin.amxx debug
To ENSURE that it will be debugged. amx_debug is 1 by default. Since plugins are loaded very early in the map change process, amxx.cfg is not parsed beforehand. Take a look:

Server Registers CVAR amx_debug to 1
Plugins are loaded
Config files are parsed

As you can see, this order will only take effect after one mapchange.

No, it's not reversable
__________________
egg
BAILOPAN is offline
Kamikaze
Senior Member
Join Date: Mar 2004
Location: Butler, PA
Old 09-24-2004 , 12:34  
#5

I see, thanks for the info, I'll use amx_debug 1 instead of setting it to 2.
Kamikaze is offline
Send a message via ICQ to Kamikaze Send a message via AIM to Kamikaze Send a message via MSN to Kamikaze Send a message via Yahoo to Kamikaze
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode