base on u said, 'debug' is much more than what u did. i guess what u do is to add some printk. if i am wrong, i am sorry.
if u modify the code, u need to recompile as usual and load it, be careful not to overwrite u old one, since u modification may be wrong. then u ca load u kernel and check /var/log/messages or use dmesg to see,