Won't the debug_on function break you inside the function instead of the intended line?
You may want to try using a #define instead as follows:
#define debug_on SET STEP ON
or when you create an executable change it to a comment
#define debug_on *
Then in your code all you need is:
debug_on
Costas