unable to set breakpoint after a particular line
조회 수: 1 (최근 30일)
이전 댓글 표시
I get the error:
Error using dbstop
You cannot set a breakpoint past the start of the last expression in file
when I do
dbstop in newmann_comm_fast at 47
except the the line I am trying to set the breakpoint is not the last line. It is inside a loop and the file in itself is more than 100 lines.
When I try setting the breakpoint through the editor it just does not respond and ignores silently(a red dot appears and disappear) I am not sure what makes matlab think that it is the last line, but I have recently edited this file (and before editing the last line was not 46 ).
EDIT: attached the file for reference.
댓글 수: 0
답변 (2개)
Walter Roberson
2016년 3월 20일
Your file name is newmann_comm_fast but your function name is newman_comm_fast . That creates problems.
댓글 수: 0
Image Analyst
2016년 3월 19일
Line 46, according to your screenshot, has no code on it. Set a breakpoint only on lines that have code on them.
댓글 수: 5
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!