use -g for debug mode not -d, that's working dir.