MATLAB: Prevent MATLAB GUI from opening when hitting a break point in command line mode

command linecommand windowguimatlab gui

I use MATLAB on my terminal using the "matlab -nosplash -nodesktop" command line option. However, when I enter debugging mode, either by hitting a break point or otherwise, the MATLAB debug GUI rears its ugly head and changes the window focus away from my terminal.
How do I prevent the MATLAB GUI from opening when using the debugger in -nodesktop mode?
Thank you!

Best Answer

Try Preferences -> Editor/Debugger and uncheck "Automatically open files when MATLAB reaches a breakpoint"