I want to debug a running python service which has threads in my Ubuntu system. I need to attach running root process and be able to place break points in python script.
What would be the best way to follow for this task?
You can use the Python debugger,
pdb, for this. You can import it as a module or use it interactively. The docs for 2.7 are here : https://docs.python.org/2/library/pdb.html