-
January 9th, 2016, 21:55 #1
- Join Date
- Nov 2008
- Posts
- 91
[TUTO-DEV] plz use single format for your Debug.console
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.
thanksLast edited by martel; January 10th, 2016 at 08:17.
-
January 18th, 2016, 07:28 #2
- Join Date
- Nov 2008
- Posts
- 91
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/UCL9...C1qlrgL35RIfJA
bye
-
January 18th, 2016, 08:12 #3
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.
-
January 18th, 2016, 08:36 #4
- Join Date
- Nov 2008
- Posts
- 91
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.
-
January 18th, 2016, 09:25 #5
- Join Date
- Feb 2009
- Location
- USA Eastern Time Zone (GMT -5/-4)
- Posts
- 2,479
- Blog Entries
- 1
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.
Writer for Just Insert Imagination and co-host of the Wild Die Podcast.
Find me on G+ to get in on one-shots, check out my YouTube and Twitch channel and follow me on Twitter @Mask_of_Winter
-
January 18th, 2016, 12:53 #6
- Join Date
- Nov 2008
- Posts
- 91
@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.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks