フィルターのクリア

How to check the current line (debug)

10 ビュー (過去 30 日間)
Mateusz
Mateusz 2012 年 4 月 10 日
回答済み: Pruthvi G 2019 年 3 月 20 日
I often use 'keyboard' command to debug my programs (since sometimes I have to use command line and matlab -nodisplay setup). When the keyboard command is reached, the execution is stopped until I type return or dbquit. Sometimes, however, I would also like to know where the execution has been stopped, that is which function/script, which line. This might help me to trace down all keyboard instructions that I have put and that are reached during the execution. It this possible in Matlab R2011b?

採用された回答

Sean de Wolski
Sean de Wolski 2012 年 4 月 10 日
Perhaps dbstack()?
doc dbstack
  1 件のコメント
Mateusz
Mateusz 2012 年 4 月 10 日
Looks this is what I need, thanks!

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

その他の回答 (1 件)

Pruthvi G
Pruthvi G 2019 年 3 月 20 日

カテゴリ

Help Center および File ExchangeDesktop についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by