breakpoints grey and cannot be set

56 次查看(过去 30 天)
Saharul Arof
Saharul Arof 2021-10-16
回答: MEP 2022-5-5
i cannot use breakpoints...all in grey color
  3 个评论
dpb
dpb 2021-10-16
The editor shows warnings/errors with the red flag at the top -- breakpoints can't be set if there are compilation errors.
Fix those and I'll bet joy will ensue...
Walter Roberson
Walter Roberson 2021-10-16
To me the colors look orange, which is warning like no semi-colon on the line. Red can prevent breakpoints but I only see orange.

请先登录,再进行评论。

回答(2 个)

Ananya Tewari
Ananya Tewari 2021-10-19
Hello,
Ideally you should be able to set breakpoints using the left click on "-" symbol beside the line number, if somehow that is not possible you can try using dbstop and see if you can set a breakpoint. Additionally refer to this document to understand debugging in MATLAB Editor.

MEP
MEP 2022-5-5
Sometimes if the GUI is not saved the color is grey, after you have saved click on "-" and it began coloured. I hope it will be useful to other users as well.

类别

Help CenterFile Exchange 中查找有关 Variables 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by