View externally-scoped variables in Workspace browser

If execution is suspended in a nested function because of an inserted breakpoint, the Workspace browser only shows local variables even though variables defined in outer (nesting) functions have external scope. Is there any way to display those externally-scoped variables in the browser? If not, this might be something to consider for a future release.

 Réponse acceptée

Drew Davis
Drew Davis le 11 Juin 2015

0 votes

There is an option 'Function Call Stack' in the toolstrip of the MATLAB editor when in debug mode. Change this drop down option the workspace you would like to view.

1 commentaire

Jim
Jim le 11 Juin 2015
Right, I was just hoping (wishing) there might be a more convenient way to view the values of all variables that are in-scope to a nested function at once, including those assigned in an outer (nesting) function.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Entering Commands dans Centre d'aide et File Exchange

Question posée :

Jim
le 10 Juin 2015

Commenté :

Jim
le 11 Juin 2015

Community Treasure Hunt

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

Start Hunting!

Translated by