On Mon, Apr 04, 2011 at 02:46:01PM +0200, Mariano Martinez Peck wrote: > On Mon, Apr 4, 2011 at 2:02 PM, Igor Stasenko <[email protected]> wrote: > > > On 4 April 2011 13:55, Benjamin <[email protected]> > > wrote: > > > You have to add a new primitive I think ... > > > > > > > there was a discussion about adding it to Cog VMs.. but i don't know > > details. > > It could be there out of the box... just need to find it :) > > > > > I don't know why I remember some Cog extensions in StandardFileStream or > something like that that could directly write to the standard output...but > maybe I am just dreaming. > > Anyway wouldn't OSProcess do the job?
Yes of course. Specifically for debugging support, see the #trace, #trace: and #debug: methods. Handy if you are trying to debug something that might drop you into an emergency evaluator. It also is running from the VM, so it avoids timing confusion related to Smalltalk process scheduling and flushing the ouput stream. Dave
