Open goldrik opened 3 months ago
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.
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.