I'd say
gentoo's the most appropriate. It's easy to get all the debugging tools you want, and it manages to be flexible without carrying 9 metric tons of baggage with it; that is to say, you can do things like installing your own kernel without driving the installer absolutely bananas.