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-roption:
H:
cd "\Documents\My MATLAB Files"
call "C:\Program Files\MATLAB\R2019a\bin\matlab.exe" -r processCrawl_quit
Also, I always begin these functions withdbstop if errorso 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 usedbupanddbdownto navigate the function stack as the workspace selector in the editor is not available.
Features covered in thiscode-alongstyle video include:
- Starting MATLAB fromWindows system prompt
- dbup,dbdown
Follow me (@stuartmcgarrity) if you want to be notified via Twitter when I post.
Play the video in full screen mode for a better viewing experience.
댓글
댓글을 남기려면링크를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.