Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Debug message writing method

Shulou Source: shulou.com Published: 2022-06-03 07:17:57 09月15日 Update

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.

Tags: Components programs input writing maximum information content individual reports faults files methods time components learning testing compilation output restrictions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Technology Linux Microsoft MariaDB