BiPOM Forum

General => Microcontroller Development Systems => 8051 Development Tools => Topic started by: DanielD on November 13, 2004, 12:10:50 pm

Title: debug messages
Post by: DanielD on November 13, 2004, 12:10:50 pm
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?

Title: Re: debug messages
Post by: vitaliy on November 14, 2004, 01:01:56 am
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