Escape code in debug mode properly