How can I debug a running python process?

I’m trying to use pyrasite but find that there is no nix package. so is there an alternative in nixpkgs ?