Debug / Getting Information/Feedback about a function

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Debug / Getting Information/Feedback about a function

#1 Post by spawni »

The more i work with mm - the more I make mistakes and need debug and logging.
So far I have seen the event-monitor and the debug-option

Fighting with the gmdetection-script I am faced to the task to check and print in mm-monitor if a function is loaded or not
Didn´t find anything in the forum so far.

Can somebody give me a hint / link / code-snippet?
BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Debug / Getting Information/Feedback about a function

#2 Post by BillDoorNZ »

just do a:

Code: Select all


function someFunction()
  printf("In someFunction()");

  ....
end;

printf is your friend!!!! all output goes to the mm window so you can see whats going on :)

spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Re: Debug / Getting Information/Feedback about a function

#3 Post by spawni »

ty :D
Post Reply