How to debug ~/dotfiles causing gdm login -> X Windows

view full story

http://serverfault.com – I recently had a problem with my Fedora Core 15 linux machine where something in my dotfiles got corrupted and caused a freeze on login from gdm such that the box would never get to the desktop. I've narrowed this down by creating a new user and logging in successfully. I have nearly a hundred dot files with numerous lines of code in them. I wonder if there is a place to look or some debugging method which would help me pinpoint where exactly the gdm login process is dying when it hands off to the desktop? (HowTos)