필터 지우기
필터 지우기

Breakpoints are ignored when running a GUI

조회 수: 9 (최근 30일)
Henrik Enquist
Henrik Enquist 2020년 1월 21일
댓글: Image Analyst 2020년 1월 29일
Breakpoints are ignored when running a GUI created using GUIDE.
The breakpoints are not cleared i.e. still visible/acitve in the Editor.
There are no 'clear all' commands in the code.
Breakpoints are respected when running the code in the Editor window.
I have tried restarting MatLab and rebooting the computer.
Please advice.
  댓글 수: 18
Henrik Enquist
Henrik Enquist 2020년 1월 29일
Geoff,
all breakpoints, regardless of location, are ignored.
Allen,
good point and something to be watchful of, but sadly not the case for me.
Adam
Adam 2020년 1월 29일
Have you tried resetting your path to the minimum of just Matlab toolboxes plus what you need for your GUI (although it if fails on every GUI you could try with only Matlab stuff on the path and create a basic GUI to test). I don't know what function it is that is triggered internally to hit a breakpoint, but maybe you have some 3rd party code on your path that is over-riding that function? Would be a bit surprising though if that were the case.

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

답변 (1개)

Image Analyst
Image Analyst 2020년 1월 29일
편집: Image Analyst 2020년 1월 29일
I do remember seeing that several versions ago but only for the situation where the breakpoints were in a sub-GUI created by GUIDE. It would stop at locations in the main GUI but not in the sub-GUI. However it seems like they fixed that problem with more recent versions. Do you have your breakpoints in code in a separate .m file (& .fig file) that gets called by the main GUI?
  댓글 수: 2
Henrik Enquist
Henrik Enquist 2020년 1월 29일
As a matter of fact, I use a sub-GUI in this case. However, I have set breakpoints in both the main-GUI .m file, in the sub-GUI file, and in other files containing called functions. All breakpoints are ignored/skipped but still present and active in the editor.
Image Analyst
Image Analyst 2020년 1월 29일
Yes, that was almost my situation. It would stop at the breakpoints in the main gui but not the sub-gui. But I don't see that anymore so I think they fixed it 2 or 3 years ago and you should not see it in your release. When you run the program, are all files saved (no asterisk after the name on the editor tab)? They must be saved so make sure there are no asterisks. So, assuming that doesn't fix it, call them. I just called them last week about GUIDE not allowing me to have a callback with a pulldown menu item and they told me it was a known bug that will be fixed in Update 4, accessible from the Add Ons button on the tool ribbon, but it's not out yet, as of Jan 25, 2020. So maybe your issue is a known bug, though I can't reproduce it.

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

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by