Eclipse can debug plugins, I have been doing that my self lately :(.
"The declared package does not
match the expected package
search.src.java.org.jivesoftware.
messenger.plugin"
The problem is that you have not specified the path to the src correctly. “search.src.java” should form part for the src path. “org.jivesoftware.messenger.plugin” is the correct package.