Unable to set breakpoint

Every time I try to set a breakpoint, the red circle comes up as long as I keep 'holding' the click, but then when I 'release' the click, it goes away. I used to be able to set breakpoints normally but now I can't

2 comentarios

Tommy
Tommy el 4 de Abr. de 2020
Is this for all files or just a particular file? If the latter, did you happen to edit the file while you were debugging it? I've had similar issues in the past, and if restarting MATLAB did not fix it, I was able to fix it by just copying my code to a new file.
Martin Contreras Carrera
Martin Contreras Carrera el 5 de Abr. de 2020
This is happening for all files

Iniciar sesión para comentar.

Respuestas (1)

Anmol Dhiman
Anmol Dhiman el 9 de Abr. de 2020

1 voto

Hi Martin,
This may be related to an issue with the caching. Try running the following commands, and then try debugging again:
>> restoredefaultpath
>> rehash toolboxcache
If this works, run the command below:
>> savepath
Incase the above solution didnot help , do let me know.
Thanks,
Anmol Dhiman

2 comentarios

Bob
Bob el 17 de Feb. de 2026 a las 3:38
I have the exact same issue, in MATLAB 2025B. Running these two commands:
>> restoredefaultpath
>> rehash toolboxcache
Did NOT fix the problem.
Walter Roberson
Walter Roberson el 17 de Feb. de 2026 a las 5:02
Sometimes MATLAB fails to set breakpoints that are set in read-only files.

Iniciar sesión para comentar.

Categorías

Más información sobre Search Path en Centro de ayuda y File Exchange.

Productos

Versión

R2018b

Preguntada:

el 3 de Abr. de 2020

Comentada:

el 17 de Feb. de 2026 a las 5:02

Community Treasure Hunt

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

Start Hunting!

Translated by