Hi I am trying to debug multi processes in python. This below is a portion of where I run multi-processes using Pool
pool = Pool(num_half_logical_cpus)
pool_result_dict = pool.starmap(process_batches, lstListSets)
However, I can't hit any breakpoints. Can anyone guide me to hit those breakpoints I set up?
Thanks!
Add this option to launch.json will let you debug multiple processes.
"subProcess": true,
Then it will hit the breakpoint then you are able to select which process you want to step through (F10). There will be a list of processes at the lower-left sub-window.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With