Why does the debugger not step to the next line on pressing the 'Enter' key while using MATLAB with the "-nodesktop" option?

5 Ansichten (letzte 30 Tage)
Why doesn't the debugger step into the next line of code on pressing the 'Enter' key? Instead I have to manually type in the "dbstep" command every time I want to step into the next line of execution. A way around this would be to press the up arrow and to get the "dbstep" command to show up again and then press the 'Enter' key but this way is more tedious.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Nov. 2023
There are several ways to step into the next line of code execution using the debugger. If "-nodesktop" is being used, the debugger still opens up the editor during the debugging process. However, if you prefer not using the GUI buttons to step into the next line of code, then you may use one of the several of the available debugging hotkeys during the debugging process. The following approaches can be taken to step into the next line of code execution:
  1. Use the GUI button in the toolstrip while in debug mode.
  2. Enter "dbstep" command into the MATLAB command window.
  3. Use the hotkey 'F10' ('Shift+Command+O on Mac OS) to step to the next line of code execution.
More information on using keyboard shortcuts for debugging can be found here:

Weitere Antworten (0)

Kategorien

Mehr zu App Building finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by