How to debug java code in a XPAGE?

Hi,

I need help to understand how it is possible to debug a java code called by any item from a xpage. The java code is written in a standard lotus library. Im talking on the normal way of coding a Xpage, calling different java functions from the library associated.

Do I need remote debugging ?

How do I set it up ?

How do I use it ?

Do I need another software ?

Thanks for any help.