Add debug info to console.log