baseparse: print proper variable in debug statement