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

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?

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2024년 7월 31일
It means that you pressed control-C while the callback for PrivateButtonPushedFcn was active.

댓글 수: 3

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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

릴리스

R2023b

질문:

2024년 7월 31일

댓글:

2024년 9월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by