setDbgFlag()
The function allows to set debug flags inside of a CTRL script.
Synopsis
int setDbgFlag(string name|int flag, bool on = true);
Parameters
Parameter | Description |
---|---|
name | Name of the debug flag which should be set. |
flag | Integer value of the debug flag which should be set. |
on | Boolean value that indicates if the flag should be activated or deactivated. |
Return value
Returns 0 in case of a success and -1 when the function is called without arguments. Note that the function also returns 0 whenever it is called with at least 1 argument, regardless if the debug flag exists or not.
Errors
Wrong parameter or debug flag not available.
Description
The function allows to dynamically activate or deactivate debug flags. Can be used to e.g. activate debug break points which have been set using DebugBreak().
Example
Activate the debug flag CTRL_DEBUGBREAK to use the break points set using DebugBreak().
main()
{
setDbgFlag("CTRL_DEBUGBREAK");
}
Assignment
-
Availability
CTRL, UI