how to get parpool to pause at breakpoints?

15 ビュー (過去 30 日間)
Ivan Viti
Ivan Viti 2019 年 4 月 29 日
回答済み: Edric Ellis 2019 年 4 月 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.

採用された回答

Edric Ellis
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 件)

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by