how can one copy and paste error message in livescript?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
alpedhuez
am 12 Jun. 2020
Kommentiert: alpedhuez
am 17 Jun. 2020
I got an error message working with Livescript. How can I copy and paste these messages?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 15 Jun. 2020
Right click on the error message and select "Copy Output"
0 Kommentare
Weitere Antworten (1)
Samatha Aleti
am 15 Jun. 2020
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
Siehe auch
Kategorien
Mehr zu Debugging and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!