Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
Debug utilities

Modules

 Debug UI API
 Immediate mode debug UI APIPer frame usage example:
 
 Debug Shape API definition
 

Enumerations

enum  ErrorExSeverity
 

Functions

proto void DumpStack ()
 Prints current call stack (stack trace) More...
 
proto void DumpStackString (out string stack)
 Prints current call stack (stack trace) to given output. More...
 
proto void DebugBreak (bool condition=true, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
 Triggers breakpoint in C++ in run time(when app is running in debug enviroment) More...
 
void CompileBreak ()
 Triggers breakpoint in C++ in compile time(when app is running in debug enviroment) More...
 
proto void DPrint (string var)
 Prints content of variable to console/log. Should be used for critical messages so it will appear in debug log. More...
 
enum ErrorExSeverity ErrorEx (string err, ErrorExSeverity severity=ErrorExSeverity.ERROR)
 Error message, prefixed by method name, above 'INFO' will show a messagebox. More...
 
proto void ErrorExString (string err, out string str, ErrorExSeverity severity=ErrorExSeverity.ERROR)
 
proto native void Error2 (string title, string err)
 Messagebox with error message. More...
 
void Error (string err)
 Messagebox with error message. More...
 
proto void Print (void var)
 Prints content of variable to console/log. More...
 
proto void PrintToRPT (void var)
 Prints content of variable to RPT file (performance warning - each write means fflush! use with care) More...
 
proto void PrintFormat (string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
 Prints formated text to console/log. More...
 

Detailed Description

Enumeration Type Documentation

◆ ErrorExSeverity

Definition at line 61 of file endebug.c.

Function Documentation

◆ CompileBreak()

void CompileBreak ( )

Triggers breakpoint in C++ in compile time(when app is running in debug enviroment)

◆ DebugBreak()

proto void DebugBreak ( bool  condition = true,
void  param1 = NULL,
void  param2 = NULL,
void  param3 = NULL,
void  param4 = NULL,
void  param5 = NULL,
void  param6 = NULL,
void  param7 = NULL,
void  param8 = NULL,
void  param9 = NULL 
)

Triggers breakpoint in C++ in run time(when app is running in debug enviroment)

◆ DPrint()

proto void DPrint ( string  var)

Prints content of variable to console/log. Should be used for critical messages so it will appear in debug log.

◆ DumpStack()

proto void DumpStack ( )

Prints current call stack (stack trace)

Returns
void
    Output:
        -- Stack trace --
       SaveFile() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler.c : 51
       SaveConfigToFile() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile.c : 114
       SaveParameterArray() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile.c : 133
       SetParameterArray() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile.c : 231
       PresetAdd() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile\ModuleLocalProfileUI.h : 46
       OnKeyPress() Scripts/mission/missionGameplay.c : 215
       OnKeyPress() Scripts/DayZGame.c : 334
       -----------------

◆ DumpStackString()

proto void DumpStackString ( out string  stack)

Prints current call stack (stack trace) to given output.

Returns
void
string tmp;
Print(tmp);
    Output:
      SaveFile() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler.c : 51
      SaveConfigToFile() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile.c : 114
      SaveParameterArray() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile.c : 133
      SetParameterArray() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile.c : 231
      PresetAdd() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile\ModuleLocalProfileUI.h : 46
      OnKeyPress() Scripts/mission/missionGameplay.c : 215
      OnKeyPress() Scripts/DayZGame.c : 334

◆ Error()

void Error ( string  err)

Messagebox with error message.

Definition at line 90 of file endebug.c.

◆ Error2()

proto native void Error2 ( string  title,
string  err 
)

Messagebox with error message.

◆ ErrorEx()

enum ErrorExSeverity ErrorEx ( string  err,
ErrorExSeverity  severity = ErrorExSeverity.ERROR 
)

Error message, prefixed by method name, above 'INFO' will show a messagebox.

Note
Format: [className%::methodName%] :: [severity%] :: errString%
Parameters

◆ ErrorExString()

proto void ErrorExString ( string  err,
out string  str,
ErrorExSeverity  severity = ErrorExSeverity.ERROR 
)

◆ Print()

proto void Print ( void  var)

Prints content of variable to console/log.

◆ PrintFormat()

proto void PrintFormat ( string  fmt,
void  param1 = NULL,
void  param2 = NULL,
void  param3 = NULL,
void  param4 = NULL,
void  param5 = NULL,
void  param6 = NULL,
void  param7 = NULL,
void  param8 = NULL,
void  param9 = NULL 
)

Prints formated text to console/log.

string c = "Peter";
PrintFormat("Hello %1, how are you?", c); // prints "Hello 'Peter', how are you?"

◆ PrintToRPT()

proto void PrintToRPT ( void  var)

Prints content of variable to RPT file (performance warning - each write means fflush! use with care)

DumpStackString
proto void DumpStackString(out string stack)
Prints current call stack (stack trace) to given output.
Print
proto void Print(void var)
Prints content of variable to console/log.
PrintFormat
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Prints formated text to console/log.
DumpStack
proto void DumpStack()
Prints current call stack (stack trace)