I'm having troubles coming up with a counterexample for the following: If $|f(z)|$ is continuous at $z_0$, then the function $f(z)$ is continuous at $z_0$ for complex numbers.
I know I need a $f(z)$ that is discontinuous at that $z_0$, where $|f(z)|$ is not.
Does anyone know of one that would work?
Define $f(z) = z/|z|$ for $z\not= 0$ and $f(0) = 1.$