Debugging logstash

Hello,
Is there anyway to attach an IDE to logstash to be able to step through plugin code?

I raised an issue here, but I wanted to try to solve the problem myself if I could.

Thanks,
Juliusz