how to get out

How do you get out of a toxic relationship when too feel stuck or attached to the person? It's so hard just to walk away.