MATLAB: How to stop at warning within parfor

debugparforwarning

My code includes a parfor loop which gives a few warnings while executing. I want to troubleshoot these but couldn't find a way to stop code at warning while saving the parameters.
I have tried dbstop if warning but it does not work within parfor loop.

Best Answer

You cannot debug code running on matlabpool workers, however you can run your code with matlabpool closed and debug that.
What is the warning you're seeing?