Does remote debugging work with the `@batch` decor...
# ask-metaflow
w
Does remote debugging work with the
@batch
decorator? ie can I step through code running on a remote instance?
v
it's doable! @hallowed-glass-14538 do you remember how you got it done?
a
If I may jump in: I would be interested if there is something for @kubernetes as well 🙂 I once opened this ticket https://github.com/Netflix/metaflow/issues/1481 and discussed some ideas with @bulky-afternoon-92433 but we did not proceed here. Do you have anything in mind for such a use case?
h
here is the outline of what it can look like : You will need to the following : 1. Remote-pdb 2. Ngrok : you can use pyngrok Remote pdb is used to set trace in the flow code. Ngrok is used to create a TCP tunnel from the port on which remote pdb has started. You can use telnet to connect to that port and walk through pdb