View Single Post
Old 01-21-2015, 07:38 AM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,517
Default

Hi again !

I made some enhancement to it :P It become serious :P

Code:
msg_start();
to define the start of something in particular (put it under msg_clean()
It will display ▼▼▼▼▼ in the console

Code:
msg_end();
to define the end of an action (put it last in your script file)
it will display▲▲▲▲▲ in the console

Code:
msg_stl(text,variable,line);msg_dtl(text,variable,line);msg_ftl(text,variable,line);
Text parameters display some text in the console before your variable
Variable parameters is the name of the variable you want to debug
Line parameters is a boolean (1 insert a line after the variable, 0 do nothing);
Use the function according to your variable type.

This way for example, if you want to debug a decimal variable, you just have to write this :
Code:
msg_dtl("My variable value:", decimalVariable, 1)
and it will display this in the console :
Code:
My variable value:
0
-----
Of course, all of these support the debug and clean variable already explained before.

Last edited by X-Raym; 01-28-2015 at 06:11 AM.
X-Raym is offline   Reply With Quote