I am facing an issue where I have been developing a filesystem driver(over x86) which has become  "unstable"  by which I mean ,  at compile time it is building but during runtime it fails when I call the corresponding APIs from the user-space.

In order to find out exactly where it is failing, I need to debug the driver.
I am very new to kernel development. I have heard about KGDB and KDB but it takes quite a lot to get them working so waht are the other tools available?

Regards,
Saket Sinha