moved debug predicate

moved debug predicate out of the way
fixed debug.pl

debugging is now using the new testing methods