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

조회 수: 11 (최근 30일)
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.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2023년 11월 27일
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:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by