Page 1 of 1

Debug / Getting Information/Feedback about a function

Posted: Thu Nov 17, 2011 7:04 am
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?

Re: Debug / Getting Information/Feedback about a function

Posted: Thu Nov 17, 2011 11:42 am
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 :)


Re: Debug / Getting Information/Feedback about a function

Posted: Thu Nov 17, 2011 12:11 pm
by spawni
ty :D