Clear Filters
Clear Filters

Workspace empty during debug in AppDesigner

3 views (last 30 days)
Sergio Huerta
Sergio Huerta on 22 Oct 2020
Edited: Nitin Kapgate on 28 Oct 2020
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?

Answers (1)

Nitin Kapgate
Nitin Kapgate on 28 Oct 2020
Edited: Nitin Kapgate on 28 Oct 2020
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.


Find more on Develop Apps Using App Designer in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!