MATLAB-extension-for-vscode icon indicating copy to clipboard operation
MATLAB-extension-for-vscode copied to clipboard

MATLAB process can hang indefinitely if dbstop

Open goldrik opened this issue 1 year ago • 1 comments

Correct behavior If a dbstop exists in the code, MATLAB will open a separate window with this file open in debug mode (when it hits an error). The process (in the command window) will hang until you manually end the debug session (press "Stop")

To replicate, type in the command window dbstop if error mean("invalid input")

A separate window will open, with the mean.m file open and a debug point located within. Press stop, then check that you can continue running MATLAB normally.

Incorrect behavior If you close the window without stopping the debug session, the command window will remain in the hung state. You have to manually reload the vscode session to get back to normal.

This behavior also triggers with some functions. For example, type in the command window dbstop if error close al

The same thing will occur, with no way to fix it unless you reload the whole window.

goldrik avatar Mar 11 '24 18:03 goldrik

Thank you for reporting this issue. This is something I can reproduce as well. As of right now debugging, both interactive and programmatically, is not supported by the extension. However, this is definitely something that we will be working on resolving in a future release.

philipb314 avatar Mar 13 '24 17:03 philipb314