Fixes after review

This commit is contained in:
Elizaveta Shashkova
2016-06-24 14:10:15 +03:00
parent d3f57ad6cb
commit d0960c95eb
2 changed files with 2 additions and 4 deletions
@@ -132,11 +132,11 @@ class DebugConsoleStdIn(BaseStdIn):
try:
cmd = self.debugger.cmd_factory.make_input_requested_message()
self.debugger.writer.add_command(cmd)
return self.original_stdin.readline(*args, **kwargs)
except Exception:
import traceback
traceback.print_exc()
return '\n'
return self.original_stdin.readline(*args, **kwargs)
class CodeFragment:
@@ -89,9 +89,7 @@ public class PythonDebugConsoleCommunication extends AbstractConsoleCommunicatio
if (processInput != null) {
try {
final Charset defaultCharset = EncodingProjectManager.getInstance(myDebugProcess.getProject()).getDefaultCharset();
String text = code.getText();
// we save previous command text!!!
processInput.write((text + "\n").getBytes(defaultCharset));
processInput.write((code.getText() + "\n").getBytes(defaultCharset));
processInput.flush();
}
catch (IOException e) {