include <ruby/debug.h> instead of declare functions.
change error message.
Merge pull request #1 from ko1/master

Fix some points.