Debug message writing method
When debugging a program, you want to output an error message. Now let's learn how to write several error messages.
1. Add custom message to testplan
In BT_basic:
(1) get'testplan'
(2) find'Eject_Ticket: p_w_picpath 13/'
Enter at the bottom of this line:
if boardfailed then
report is *
print is "dec/rpr1"
print " ****" //Enter custom content
print "**** "
print is *
report is Report_printer$
end if
(3) re-save
Then run again.
2. For individual components add message: Find the library of the component and add it before the test program
on failure
report " ***"
end on failure
And save the compilation.
3. There are two ways to add error messages to shorts:
(1) At the beginning of the shorts file add: report common devices (list all common components)
Then re-save.| comp' shorts' | debug shorts | exe to fail
(2) Add: report limit #in front of shorts, where #refers to the maximum number listed when there is an error, and the value set by yourself. Can be used to limit fault reporting time.