App designer break points doesnt work
Mostrar comentarios más antiguos
I designed GUI via appdesigner. I copied that app to another computer. Both computer has same matlab 2023a version. Everything is same. But in another computer I can not set break points in appdesigner . Why that happen? Code is same, not different, same file.
6 comentarios
dpb
el 8 de Ag. de 2023
Impossible to diagnose from afar with just a generic description; would have to have the .mlapp file to tell.
However, one might guess that a compilation error has inadvertently been introduced into the second copy; that's the most common reason breakpoints can't be set in the editor.
Melih Furkan SEN
el 10 de Ag. de 2023
Is it THE same file from a shared location or a copy? If a copy, there's always that chance that you've inadvertently made a change in the code.
As noted before, something of this sort is impossible to diagnose from afar without the actual .mlapp file (and may be even with it, but if the symptom doesn't appear on another system, it would imply it's the system that has the problem, not the app).
Can you create a new app file and set breakpoints in it on the second machine? If so, that returns the issue to one of something in the specific .mlapp file; if not, then there's something wrong in the install itself.
Melih Furkan SEN
el 13 de Ag. de 2023
dpb
el 13 de Ag. de 2023
"..., the app acts like "only creator can set breakpoint""
What does that mean? Are you getting an error message of some sort that has such a phrase in it? Post graphic of it, if so.
That sounds like an issue of an OS protections being set that some file location can't be accessed or somesuch. A <recent Q? here on a file access error> turned out to be caused by a symlink pointing to the file; any chance there are such in the install directories or at the location of the .mlapp file on the wayward system?
You probably will have to submit this to official TMW support to resolve; it simply can't be diagnosed remotely without more details than we have.
Melih Furkan SEN
el 28 de Dic. de 2023
Respuesta aceptada
Más respuestas (1)
Dan Harris
el 1 de Dic. de 2023
2 votos
Not sure this is your issue, but I had a very similar issue. I copied via github clone from one machine to another with different matlab versions 2023a to 2021b. I got the same error about unsynced versions because MATLAB had to make changes to make the .mlapp work on 2021b. To solve this issue I had to saveas "new file name", then saveas "old file name". A simple save or ctrl+s wasn't cutting it. Once I overwritten the old file, I was able to break in the .mlapp code again on the new machine.
2 comentarios
Melih Furkan SEN
el 28 de Dic. de 2023
Ben Abbott
el 5 de Ag. de 2024
@Dan Harris, your suggestion worked for me. However, for me, the problem did not coincide with a version upgrade/downgrade.
Categorías
Más información sobre Debugging and Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!