- 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.
Workspace empty during debug in AppDesigner
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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?
0 Commenti
Risposte (1)
Nitin Kapgate
il 28 Ott 2020
Modificato: Nitin Kapgate
il 28 Ott 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:
0 Commenti
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!