How to stop at warning within parfor
5 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Edric Ellis
on 10 Sep 2012
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?
More Answers (0)
See Also
Categories
Find more on Parallel for-Loops (parfor) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!