how can one copy and paste error message in livescript?

14 vues (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 12 Juin 2020
Commenté : alpedhuez le 17 Juin 2020
I got an error message working with Livescript. How can I copy and paste these messages?

Réponse acceptée

Walter Roberson
Walter Roberson le 15 Juin 2020
Right click on the error message and select "Copy Output"

Plus de réponses (1)

Samatha Aleti
Samatha Aleti le 15 Juin 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

Catégories

En savoir plus sur Software Development Tools dans Help Center et File Exchange

Tags

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by