Debugging Code Started from Windows System Prompt
I have a number of MATLAB functions that run daily, started from a batch file called by the Windows Task Manager. The .bat file contains lines like this calling the MATLAB executable with the -r option:
H:
cd "\Documents\My MATLAB Files"
call "C:\Program Files\MATLAB\R2019a\bin\matlab.exe" -r processCrawl_quit
Also, I always begin these functions with dbstop if error so I can troubleshoot if something goes wrong. Today this has happened and one of these functions has stopped at a breakpoint and I need to debug it.
I use dbup and dbdown to navigate the function stack as the workspace selector in the editor is not available.
Features covered in this code-along style video include:
- Starting MATLAB from Windows system prompt
- dbup, dbdown
Play the video in full screen mode for a better viewing experience.
评论
要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。