VDBInferiorConsoleApplication.st
changeset 6 981a32abdbf6
parent 5 fac6e83fd5c0
child 40 d766d4c854a2
--- a/VDBInferiorConsoleApplication.st	Tue Jun 10 17:46:14 2014 +0100
+++ b/VDBInferiorConsoleApplication.st	Tue Jun 10 21:12:15 2014 +0100
@@ -71,6 +71,20 @@
 
 !VDBInferiorConsoleApplication methodsFor:'initialization & release'!
 
+subscribe   
+    "Register for debugger events. To be overrided by subclasses"
+
+    super subscribe.
+    (debugger notNil and:[consoleView notNil]) ifTrue:[
+        consoleView stopReaderProcess.
+        consoleView inStream: debugger inferiorStdin.
+        consoleView outStream: debugger inferiorStdout.
+        consoleView startReaderProcessWhenVisible.
+    ].
+
+    "Created: / 10-06-2014 / 21:02:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 unsubscribe
     "Unsubscribe myself fo debugger events"