Why does the MATLAB Editor/Debugger pop up when I have another editor chosen as the default editor in MATLAB?

10 views (last 30 days)
I use an external text editor as my default editor in MATLAB. I choose to set breakpoints in my MATLAB files using DBSTOP. When I execute my code after setting a breakpoint, the code does stop at the breakpoint but the MATLAB Editor/Debugger also pops up with the file. This is not needed, since I already have the file open in the external editor.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 22 May 2013
To prevent the MATLAB Editor/Debugger from opening a MATLAB file when encountering a breakpoint, turn off the "Automatically open files when MATLAB reaches a breakpoint" option in Preferences ->Editor/Debugger in MATLAB. Note this cannot be done via the command line.
When this option is selected, MATLAB opens the MATLAB file in the MATLAB Editor/Debugger or Emacs. External text editors are not integrated with MATLAB graphical debugging features. For more information regarding setting up Emacs as an integrated text editor in MATLAB, execute the following on the MATLAB command prompt:
docsearch('emacs as text editor')

More Answers (0)

Categories

Find more on Debugging and Analysis in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!