Make debug rule command a little more flexible