Skip to content

8. Debug Entrypoint

Nicolas BOITEUX edited this page Dec 1, 2017 · 1 revision

Debug in oop by default is not a standard way cause the compilator alert you on error that happens on code that is transformed. So line or error are not relevant to your object.

To improve tracking of differents bugs we add a MACRO instruction DEBUG, that permits to add entrypoint.

DEBUG is a macro alias of#line keyword, wich is process by compilator. The role of this macro is to output the error, the line where error occured, and the object concerned.

Best pratice to setthe entry point should be to declare them at the begining of thefunctions,cause the count of line start where the DEBUG keyword is used (line 0).

example:

PUBLIC FUNCTION("", "sayHelloWorld") {
		DEBUG(#, "OO_FOO::sayHelloWorld")
		hint "hello world"
};

will alert you there s missing a coma at end line 0 of OO_FOO object in sayHelloWorld function

Clone this wiki locally