フィルターのクリア

How to get the workspace of a debugged function, from within a GUI debugger

4 ビュー (過去 30 日間)
Jeroen Boschma
Jeroen Boschma 2023 年 3 月 12 日
コメント済み: Jeroen Boschma 2023 年 3 月 12 日
I want to accomplish the following:
  • Start a Matlab function, say Test(), which then hits a breakpoint set by myself.
  • Start a debugger GUI (tool I want to write). It is also possible that this tool is already running before starting Test().
  • The debugger GUI must then be able to get the workspace of function Test(), and present its variables in the GUI to the user (with different functionality the Matlab GUIs currently offer....).
I searched quit a lot but did not find how to do this. It seems that evalin() is restricted to 'base' or 'caller', and thus the workspace of Test() is unreachable once you enter a function in the debugger GUI. Is there a way to bypass that and get the variables of the Test() workspace into the debugger GUI and maybe even be able to update while stepping through Test()?
The best thing I could come up with thusfar is to start the GUI on the command line after hitting the breakpoint in Test(), so I can copy Test() variabes at that time, but it does not enable me to track them while stepping through the Test() code.

回答 (1 件)

Steven Lord
Steven Lord 2023 年 3 月 12 日
  1 件のコメント
Jeroen Boschma
Jeroen Boschma 2023 年 3 月 12 日
Because I want a treeview of nested class/structs, that can be done quite easily in ASCII.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by