Workspace empty during debug in AppDesigner

3 次查看(过去 30 天)
I'm very confused. I have an app with a table in it and a callback function for cell selection. For some reason, when the debugger hits a breakpoint inside this callback and execution pauses (little blue arrow shows up), the workspace is completely empty. Im trying to see the status/values of the current variables, but since the workspace is empty i cant navigate through them. Im being forced to print out the values to handle my debugging, but this makes it difficult considering i dont always know the exact structure/layout of all my current variables.
If i put a breakpoint in a different function of my app and the breakpoint hits, the current variables there DO show up in the workspace.
Why is nothing showing up only for my cell selection callback?

回答(1 个)

Nitin Kapgate
Nitin Kapgate 2020-10-28
编辑:Nitin Kapgate 2020-10-28
I tried to reproduce the issue at my end in MATLAB R2020b and I was able to see the variables defined in UITableCellSelection callback function in the app workspace. As you are using R2018a version of MATLAB, please upgrade to the latest R2020b version.
Alternatively, you can see the values of different variables by hovering the mouse over the variable using the following steps:
  • After setting the break point, run the app and execute the callback function that contains the line break (example: press the cell in the table that activates the UITableCellSelection callback function).
  • When execution gets to the break line, execution will pause and you then will have access to all variable values prior to the break point by hovering your mouse over the variable.
  • Press F10 to step through the rest of the code line by line or F5 to finish running the code.
You can refer to the discussion here to learn more about debugging in App Designer.

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by