can't debug step by step or quit

i can only run to cursor when debugging my scripts.

6 件のコメント

Geoff Hayes
Geoff Hayes 2022 年 1 月 26 日
@Zhangziyi Zhou - please clarify what you mean by you can only run to cursor. What is the cursor? Are you having trouble inserting breakpoints into your code?
Zhangziyi Zhou
Zhangziyi Zhou 2022 年 1 月 26 日
@Geoff Hayes I added a picture to the post. Buttons for step in out or continue or quit are all gray, and I only get to choose run to cursor.
Geoff Hayes
Geoff Hayes 2022 年 1 月 26 日
@Zhangziyi Zhou - is that screen shot before or after you have pressed the RUN button? Did you add breakpoints before you pressed the RUN button? Or has the debugger already passed the line where there is a breakpoint and none follow, thus the debugging buttons are greyed out?
Matt J
Matt J 2022 年 1 月 26 日
編集済み: Matt J 2022 年 1 月 26 日
Does it persist when you restart Matlab? And when you reboot?
Zhangziyi Zhou
Zhangziyi Zhou 2022 年 1 月 26 日
@Geoff Hayes It's after I pressed run. I added breakpoints, and the pragram stopped there but doesn't let me progress step by step. the break point is placed in the middle of the script
Zhangziyi Zhou
Zhangziyi Zhou 2022 年 1 月 26 日
@Matt J Oh it worked after I restart Matlab. I had two versions opened not sure if that caused the problem. Thanks.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

リリース

R2016b

タグ

質問済み:

2022 年 1 月 26 日

コメント済み:

2022 年 1 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by