General > 8051 Development Tools

debug messages

(1/1)

DanielD:
MicroC has debug message capability (compiler error messages), how do you turn that on in the IDE?  There is information about how to set up these messages in Debug.h in the MicroC directory but I am missing a step somewhere.  Could you let me know if you have any experience with this?

vitaliy:
The following Preprocessor  commands are recognized by the MicroC compiler
if they occur at the beginning of the source file line:  
1)
#error <text>
 Causes  MicroC to  issue  an  error  message  containing   the
specified text, and then terminate.

2)
#message <text>
Outputs an informational message (does not terminate).

For example,
#message "SOME MESSAGE"

Best regards,
Vitaliy

Navigation

[0] Message Index

Go to full version