how to get parpool to pause at breakpoints?
15 次查看(过去 30 天)
显示 更早的评论
When I do "parpool('local',4)" Matlab ignores my breakpoints so that I can't debug my parallel code. This is within an spmd section.
0 个评论
采纳的回答
Edric Ellis
2019-4-30
Unfortunately, it is not possible to use the MATLAB debugger to debug code running on workers. The normal workaround is to liberally sprinkle fprintf or disp calls through your code that will be run on the workers. Often this is sufficient to narrow down the problematic portion of code to something you can debug on the client.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!