how can one copy and paste error message in livescript?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 15 de Jun. de 2020
Right click on the error message and select "Copy Output"

Más respuestas (1)

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

Categorías

Más información sobre Debugging and Analysis en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

el 12 de Jun. de 2020

Comentada:

el 17 de Jun. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by