Depends. If I'm just sketching something in code, or I don't know what I'm actually building, I'll write it out in code first.
However, if I'm designing a known thing, where I understand what it's suppose to do; I usually devise a mental model of the thing I'm trying to build before I start committing to code.
Also, having a mental model for the system that you're designing makes it apparent whether someone else can pick up and understand your system.
I also don't really use a debugger. Not sure why though.