how to get parpool to pause at breakpoints?
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ivan Viti
le 29 Avr 2019
Réponse apportée : Edric Ellis
le 30 Avr 2019
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 commentaires
Réponse acceptée
Edric Ellis
le 30 Avr 2019
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Parallel Computing Fundamentals dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!