In Release 2016a, you can now pause a running MATLAB program and enter debug mode. Here, I use this feature to stop a long running script to confirm it is working correctly.