What does "Interrupt while evaluating Button PrivateButtonPushedFcn." mean?

My program was working but now I'm getting this.
Interrupt while evaluating Button PrivateButtonPushedFcn.
If I knew more about the error maybe I coud fix it. There is no help looking up this error in MatLab help. Googled but got trivial problems others had had.

1 Commento

Hi Gavin,
you can take a look into this similar kind of issue related to "Interrupt error": https://in.mathworks.com/matlabcentral/answers/432042
or else if possible could you eplain the issue in more details?

Accedi per commentare.

 Risposta accettata

It means that you pressed control-C while the callback for PrivateButtonPushedFcn was active.

3 Commenti

I did not press Ctrl-C but I was possibly at a breakpoint in the debugger.
I'm having trouble because unless you are paused at a breakpoint you can't see any values of variables or handles.
>> app.DebugField.Value
Unable to resolve the name 'app.DebugField.Value'.
>> toPicoStr
Unrecognized function or variable 'toPicoStr'.
Nothing can be seen while the program is running and not halted somewhere. There is probably a reason but I's sure like to track variables without having to set a random breakpoint to get a halt.
It sure would be nice it the Command Window could see public variables of a running app without needing to hit a breakpoint. Is there a work around? A reason this can't be done?
Polling for changes to variables and transfering the new contents over to display is an expensive operation. MATLAB would slow down a lot if the variable browser were continually updated between breakpoints.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Programming in Centro assistenza e File Exchange

Prodotti

Release

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by