Workspace empty during debug in AppDesigner

3 Ansichten (letzte 30 Tage)
Sergio Huerta
Sergio Huerta am 22 Okt. 2020
Bearbeitet: Nitin Kapgate am 28 Okt. 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?

Antworten (1)

Nitin Kapgate
Nitin Kapgate am 28 Okt. 2020
Bearbeitet: Nitin Kapgate am 28 Okt. 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.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by