# Emacs support in debugger

**URL:** <https://rubytalk.org/t/emacs-support-in-debugger/17081>\
**Category:** ruby-talk\
**Created:** [21 March 2005 18:14 UTC](https://rubytalk.org/t/emacs-support-in-debugger/17081 "2005-03-21T18:14:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunter\_Kelly](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@Hunter\_Kelly](https://rubytalk.org/u/Hunter_Kelly)\
**Post date:** [21 March 2005 18:14 UTC](https://rubytalk.org/t/emacs-support-in-debugger/17081/1 "2005-03-21T18:14:56Z")

</div>

Hi there, I was trying to run the debugger in XEmacs on Windows XP  
(SP2) and it wasn't behaving as I expected.

To make a long story short, the problem is buffering. I noticed that  
irb/init.rb explicitly does:

STDOUT.sync=true

very early on, and so it works fine, but the debugger never seemed to  
return anything. Sure enough, when I did set sync to true, everything  
worked as I expected.

Is this an oversight, or is there something wrong with my setup, or  
what?

Also, I noticed that the debugger intentionally prints two octal 32  
chars at the beginning of a line. I'm not sure why this is, but it  
sure makes the output look funny in the debug buffer 🙂 I'm guessing  
this is some kind of comint magic thing that works differently between  
unix and windows?

Thanks,

Hunter
