I've had this issue before...
Under User-Defined I have created DEBUG_LEVEL_1
And within my code I have
#if DEBUG_LEVEL_1
self.status = printSimDir()
#endif
However the printSimDir function is never called.
So obviously I am setting something incorrectly here