are you sure you are debugging the core file? This usually works. Personally I generally use a combination of Context; and putlogs to debug whats going on. this at least lets you know where the code got to.
I also didnt think that you could compile librarys into a module - dynamic linking and all that. If you can, that would make my life a whole lot easier with my project, so I watch with interest.