how can one copy and paste error message in livescript?

5 ビュー (過去 30 日間)
alpedhuez
alpedhuez 2020 年 6 月 12 日
コメント済み: alpedhuez 2020 年 6 月 17 日
I got an error message working with Livescript. How can I copy and paste these messages?

採用された回答

Walter Roberson
Walter Roberson 2020 年 6 月 15 日
Right click on the error message and select "Copy Output"

その他の回答 (1 件)

Samatha Aleti
Samatha Aleti 2020 年 6 月 15 日
Hi,
You can use “lasterror" to get the information of the last error in the form of a structure” which includes “Error message, Error ID".Then you can copy and paste the error message accordingly. Here is a sample code:
clear all;
x = y+1; % y is not defined
err = lasterror
err.message

カテゴリ

Help Center および File ExchangeSoftware Development Tools についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by