erdos-project / pylot

Modular autonomous driving platform running on the CARLA simulator and real-world vehicles.
https://pylot.readthedocs.io/
Apache License 2.0
473 stars 133 forks source link

CAN not hit breakpoint when debugging Operator python file #262

Open FlowEternal opened 2 years ago

FlowEternal commented 2 years ago

i wanna debug Operator python file (e.g. DetectionOperator) i use vscode and ssh to docker container and add breakpoint in functions like __run_model in Operator python file. but it seems that it can not hit break point when erdos.internal is involved am I missing something?

pschafhalter commented 2 years ago

Hi,

To provide concurrency, ERDOS runs Pylot's operators in different processes, which may make debugging difficult. You may need to connect the debugger to the python process running the operator with the breakpoint (which might not be possible if you are using pdb).