How to re-enable grayed out tool buttons?

While debugging a file, MATLAB redirects to an internal function of sorts, and all the run or step buttons are grayed out.
After debugging or while debugging, I got redirected to more information about an error.
After closing the error script, I was still not able to return to debugging or run any further commands.
Any options other than restarting MATLAB?

3 Kommentare

Steven Lord
Steven Lord am 29 Okt. 2020
While debugging a file, MATLAB redirects to an internal function of sorts, and all the run or step buttons are grayed out.
That is exactly the opposite of the behavior I'd expect. Can you confirm that you run your code, stop (at a breakpoint, an error breakpoint, or a keyboard command) in your code and the buttons in the Debug section of the Editor tab of the Toolstrip are disabled?
What is the full and exact text of the error message to which you were redirected?
The fact that you seem to be stopped in the constructor of the onCleanup object is strange.
Israel Vaughn
Israel Vaughn am 8 Jun. 2021
This just happened to me. onClean constructor, I closed that file and now all the debugging commands are greyed out in my editor window. "dbquit" does nothing. The main matlab windows does not indicate that a debugger is running.
Richard DeFazio
Richard DeFazio am 28 Okt. 2021
As Israel wrote, same problem here. dbquit does not run. Greyed out continue button. Run to cursor works if cursor is at end of main script, but generates an error about breakpoints. Quit and restarted.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Hiro Yoshino
Hiro Yoshino am 14 Dez. 2020

0 Stimmen

2 Kommentare

In my case, when this happened to me and I used dbquit in the command window, I get the error
>> dbquit
Error using dbquit
Debug commands only allowed when stopped in debug mode.
arci biyo
arci biyo am 21 Okt. 2021
Alex Wooten, can you fix this problme ?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Variables finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Tags

Gefragt:

am 29 Okt. 2020

Kommentiert:

am 28 Okt. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by