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 define in plugins?Solved
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 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.
#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 ?
Locked automatically