--- a/eric6/DebugClients/Python/AsyncFile.py Tue Oct 06 17:52:44 2020 +0200 +++ b/eric6/DebugClients/Python/AsyncFile.py Tue Oct 06 17:55:10 2020 +0200 @@ -333,10 +333,14 @@ Public method to write a string to the file. @param s text to be written - @type str + @type str, bytes or bytearray """ self.__checkMode('w') + if isinstance(s, (bytes, bytearray)): + # convert to string to send it + s = repr(s) + cmd = prepareJsonCommand("ClientOutput", { "text": s, })