在調試程序時,希望輸出出錯的信息,現在就來學習下幾種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時,列出的大數,自己設置的值。可用來限制故障報告時間。
本文標題:調試message寫法-創新互聯
分享鏈接:http://vcdvsql.cn/article32/cssssc.html
成都網站建設公司_創新互聯,為您提供動態網站、域名注冊、微信公眾號、關鍵詞優化、響應式網站、標簽優化
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯