Log in

View Full Version : [TUTO-DEV] plz use single format for your Debug.console



martel
January 9th, 2016, 21:55
Hey,


i try to earn the ruleset and I am very puzzled that debug mode is not used in a practical way by extension creators of rulesets ...
try to use a unique way to do to facilitate understanding you use.

i propose this

Debug.console("nameOfExtension - nameOfFileScript --> nameOfFunction: nameOfVariable=", nameOfVariable);

example :
Debug.console("CoC7e - manager_action_damage --> handleApplyDamage: rSource=", rSource);
Debug.console("CoC7e - manager_action_damage --> handleApplyDamage: rTarget=", rTarget);
Debug.console("CoC7e - manager_action_damage --> handleApplyDamage: msgOOB", msgOOB);

after it is very easy to change all files you want debug correctly...in notepad++ use (Find/Remplace all) with :
find : Debug.console
replace with : -- Debug.console

and all line debug is off
and inverse is all on in one task.

when you see the console, is very very easy to earn what where and how...

try it and never mind different.

thanks

martel
January 18th, 2016, 07:28
Hey,


I created a youtube channel for my little experience and i want share with people to help.

It's in french, but you can understand by your eyes. :-) it's better tuto in movie vs written document if you dont understand the language..


https://www.youtube.com/channel/UCL9xGS-U-C1qlrgL35RIfJA


bye

damned
January 18th, 2016, 08:12
Hi Martel - have a look at the MoreCore extension and the Maelstrom RPG ruleset - they have a lot more comments in them - they dont have as much debug as you might like but they do have quite a lot of comments. This might be of help.

martel
January 18th, 2016, 08:36
if you see my video, i explain to do better debug system, it is for the developer more easy.

thks for MoreCore extension, i go see that, but i like more my debug format.

Mask_of_winter
January 18th, 2016, 09:25
MoreCore isnt a debug machine. It's an extension. Damned soulignait simplement que ses extensions et rulesets possèdent beaucoup de commentaires dans les fichiers xml qui sont très utiles pour les dévelopeurs.

martel
January 18th, 2016, 12:53
@Mask_of_winter : merci, j'avais compris ...par contre je ne sais pas si je me suis fait comprendre :-)
Car quand tu as plusieurs Extensions, avec une façon de créer les lignes de débugage trop simple, on ne voit pas bien d'où ça vient. alors qu'avec le format que j'utilise, on peut facilement avoir du code overrider (ruleset->extension1->extenion2) on sait exactement quelle fonction, et surtout à quelle couche on se trouve.