if in debug apply console.log