Debug define in plugins?Solved
Why do you use #if DEBUG, .. ? How can I enable debug mode for server ? or it is just for compilation? then how to use it lol
DEBUG, in this case, is a preprocessor directive which can be specified when compiling uMod or plugins (potentially) and when enabled, it gives the developer the ability to safely test things, or do things that might otherwise negatively impact the user experience (yet still might be useful for debugging)
In response to Calytic ():
DEBUG, in this case, is a preprocessor directive which can be specified when compiling uMod or plugi...
And how to enable it for one plugin?
In response to misticos ():
And how to enable it for one plugin?
It won’t do anything alone, it is just a define like any other define. A define can be set by adding:

#define NAME

to the top of your plugin. Some developers use that to have various portions of code that are only compiled and used if that is set for testing.
We have added documentation on preprocessor directives here
Is it possible to debug with stop points like in Java on Eclipse :D ?
In response to Sorrow ():
Is it possible to debug with stop points like in Java on Eclipse :D ?
In your IDE, sure; but you'd have to have something that triggers those hooks and such. You could also set a .NET profiler for additional information on the server.
Locked automatically