- Use the GUI button in the toolstrip while in debug mode.
- Enter "dbstep" command into the MATLAB command window.
- Use the hotkey 'F10' ('Shift+Command+O on Mac OS) to step to the next line of code execution.
Why does the debugger not step to the next line on pressing the 'Enter' key while using MATLAB with the "-nodesktop" option?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Nov 2023
Answered: MathWorks Support Team
on 20 Dec 2023
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.
Accepted Answer
MathWorks Support Team
on 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:
More information on using keyboard shortcuts for debugging can be found here:
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!