Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Debug message writing method

2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report