필터 지우기
필터 지우기

how can one copy and paste error message in livescript?

조회 수: 3 (최근 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 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