Support copy-paste several lines to Debug console, fixes #1230