温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

调试message写法

发布时间:2020-06-03 12:30:13 来源:网络 阅读:718 作者:niniki 栏目:软件技术

在调试程序时,希望输出出错的信息,现在就来学习下几种error message的写法。

1.在 testplan里添加自定义的message

  在BT_basic里:

  (1) get'testplan'

   (2) find‘Eject_Ticket: p_w_picpath 13/'  

 在这行的下面输入:

  if boardfailed then 

  report is *

  print is "dec/rpr1"

  print "  *****"     //输入自定义内容

  print "****   "

  print  is *

  report is Report_printer$

  end  if 

 (3) re-save

  然后再run

2.对于单个元件加 message:找到元件的library,在测试程序前面添加

  on failure

  report "    ***"

  end on failure  

  再保存编译就好了。

 

3.在shorts里添加error message,有两种方法:

 (1) 在shorts文件的最前面加上: report common devices (列出所有共同的组件)

       再执行  re-save   |  comp' shorts'  | debug shorts   |  exe to fail

 (2) 在shorts前面加上 :report limit #  ,其中# 指当有error时,列出的最大数,自己设置的值。可用来限制故障报告时间。


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI