breakpoints grey and cannot be set

조회 수: 61 (최근 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