I am writing a python code that contains the use of ThreadPoolExecutor
and ProcessPoolExecutor
.
I would like to debug the code, specially the functions that are being called in parallel. Being able to stop execution, set breakpoints, inspect variables etc
How can this be made? I tried but since the processes are being in other threads, breakpoints do not work.