print debug info to console