breakpoints grey and cannot be set

i cannot use breakpoints...all in grey color

3 comentarios

Walter Roberson
Walter Roberson el 16 de Oct. de 2021
With the view you happened to show, we cannot be sure that you have clicked on a particular line.
What happens if you left click on the '-' that is before the line you want to set the breakpoint at?
dpb
dpb el 16 de Oct. de 2021
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 el 16 de Oct. de 2021
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.

Iniciar sesión para comentar.

Respuestas (2)

MEP
MEP el 5 de Mayo de 2022

1 voto

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.
Ananya Tewari
Ananya Tewari el 19 de Oct. de 2021

0 votos

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.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 16 de Oct. de 2021

Respondida:

MEP
el 5 de Mayo de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by