how can one copy and paste error message in livescript?

6 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by