Support "-d" args to enable debug mode.