unable to set breakpoint after a particular line

4 ビュー (過去 30 日間)
Amandeep Gautam
Amandeep Gautam 2016 年 3 月 19 日
回答済み: Walter Roberson 2016 年 3 月 20 日
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 ).
Here is the paste for reference: http://pastebin.com/tkbzpL8t
EDIT: attached the file for reference.

回答 (2 件)

Walter Roberson
Walter Roberson 2016 年 3 月 20 日
Your file name is newmann_comm_fast but your function name is newman_comm_fast . That creates problems.

Image Analyst
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 件のコメント
Image Analyst
Image Analyst 2016 年 3 月 19 日
Can't run it. You forgot to tell us what you're passing in for adj.
Amandeep Gautam
Amandeep Gautam 2016 年 3 月 19 日
adj is any adjacency matrix for a graph. I will attach the mat file for the same.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by