Fix some points.

I changed the following points.
(1) Use ruby/debug.h.
(2) Change error message.